2 ms·
Actually, the genius of the coffeescript version is that it's just a use case of the general destructuring syntax. So { x, y } = { x : 3, y : 5, z : 3 }
by moomin 15y ago
Actually, the genius of the coffeescript version is that it's just a use case of the general destructuring syntax. So
{ x, y } = { x : 3, y : 5, z : 3 }
is perfectly valid as well. Once you get the hang of coffeescript's destructuring, it's insanely powerful.