|
|
|
@ -23,6 +23,7 @@
|
|
|
|
1. Destructuring
|
|
|
|
1. Destructuring
|
|
|
|
1. swap (desconstucturing method)
|
|
|
|
1. swap (desconstucturing method)
|
|
|
|
1. Merge objects
|
|
|
|
1. Merge objects
|
|
|
|
|
|
|
|
1. Array functions
|
|
|
|
|
|
|
|
|
|
|
|
<!-- other options:
|
|
|
|
<!-- other options:
|
|
|
|
|
|
|
|
|
|
|
|
@ -819,3 +820,11 @@ var sally = Object.assign({}, bob, {name:'Sally'})
|
|
|
|
|
|
|
|
|
|
|
|
console.log(sally);
|
|
|
|
console.log(sally);
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Array functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
There are a bunch of cool new array helper functions:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|