Exploring Javascript Destructuring (JSBin + TDD + ES6)

preview_player
Показать описание
A quick run through of combining various destructuring operations with Javascript (ES6). Illustrated through TDD on JSBin, via Mocha and Expect.

- Plucking ordered elements out of an array
- Plucking out deep object properties
- Plucking "rest" (spread) for objects and arrays
- Provides "undefined" when not present
- Destructures function arguments

Рекомендации по теме