News for hackers. Stuff that matters.
Re:Some HTML, CSS and ES2015 Best Practices by malft on Wednesday February 25, 2015 @05:32AM (#9106133)
Several of the examples have an extra lambda like this. What does it do?

const toArray = (() => Array.from ? Array.from : obj => [].slice.call(obj) )();

Re:Some HTML, CSS and ES2015 Best Practices by benjamindc on Wednesday February 25, 2015 @05:34AM (#9106138)
It's an IFFE (Immediately-Invoked Function Expression). The goal is to perform the feature test (the availability of Array.from in this case) just once instead of for every function call.