`reverse()`方法原地翻转类型化数组。类型化数组的第一个元素变为最后一个，最后一个变为第一个。这个方法的算法和`Array.prototype.reverse()`相同。 TypedArray 是这里的 类型化数组类型 之一。

## 语法

    typedarray.reverse();

### 返回值

翻转的数组。

## 示例

    var uint8 = new Uint8Array([1, 2, 3]);
    uint8.reverse();

    console.log(uint8); // Uint8Array [3, 2, 1]

## 规范

Specification | Status | Comment
--- | --- | ---
ECMAScript 2015 (6th Edition, ECMA-262) TypedArray.prototype.reverse | Standard | 初始定义。
ECMAScript Latest Draft (ECMA-262) TypedArray.prototype.reverse | Draft |

## 浏览器兼容性

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

- Desktop
- Mobile

Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari
--- | --- | --- | --- | --- | --- | ---
Basic support | 45 | 12 | 37 (37) | 未实现 | 32 | 10

Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile
--- | --- | --- | --- | --- | --- | ---
Basic support | 未实现 | 未实现 | 37 (37) | 未实现 | 未实现 | 10

## 另见

- `Array.prototype.reverse()`