added examples for transforms. [skip ci] (#5393)
This commit is contained in:
@@ -2,6 +2,24 @@
|
||||
|
||||
> Compile ES2015 destructuring to ES5
|
||||
|
||||
## Examples
|
||||
|
||||
**In**
|
||||
|
||||
```javascript
|
||||
let arr = [1,2,3];
|
||||
let {x, y, z} = arr;
|
||||
```
|
||||
|
||||
**Out**
|
||||
|
||||
```javascript
|
||||
var arr = [1, 2, 3];
|
||||
var x = arr.x,
|
||||
y = arr.y,
|
||||
z = arr.z;
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
|
||||
Reference in New Issue
Block a user