3 ms·
Also coming to ES6 is destructuring objects: function doSomething(aObj) { let { x, y } = aObj; } doSomething({ x: 1, y: 4 })
by janjongboom 12y ago
Also coming to ES6 is destructuring objects:
function doSomething(aObj) {
let { x, y } = aObj;
}
doSomething({ x: 1, y: 4 })