3 ms·
And indeed almost exactly like that in JavaScript - just substitute ()=> for the [&]()
by somewhereoutth 4y ago
And indeed almost exactly like that in JavaScript - just substitute ()=> for the [&]()
- wruza 4y agoYou can’t directly call a function definition in js, so it will look like this: const value = (()=>{ … })()