3 ms·
EC6 allows you to destructure in the function definition?
by pyre 11y ago
EC6 allows you to destructure in the function definition?
- mycelium 11y agoYep. It's awesome. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#Function_argument_defaults https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- emidln 11y agoAs someone who splits his time between Python, Clojure, and Javascript (via Babel), lack of this is extremely annoying for Python since the other two languages allow it.