I kinda 😍 this JS syntax as it's really useful for default properties. But also kinda 😱 as I totally didn't get the `= {}` bit at first & I still find it unintuitive! 😄
https://simonsmith.io/destructuring-objects-as-function-parameters-in-es6/#allowing-the-configuration-object-to-be-optional
Conversation
Notices
-
Peter O'Shaughnessy (peter@toot.cafe)'s status on Monday, 04-Feb-2019 17:13:25 UTC Peter O'Shaughnessy - 🎓 Dr. Freemo :jpf: 🇳🇱 repeated this.