3 ms·
The alternative being the pretty-much-just-as-short indices.map(i => myObjectArr[i])?
by joppy 5y ago
The alternative being the pretty-much-just-as-short indices.map(i => myObjectArr[i])?
- antris 5y agoComposability is not about syntax but being able to express code as values. You can have complex behaviors from pure functions that are guaranteed to work and can be recomposed into more and more complex structures. It's not a big thing of course with such a simple example, but just try to program without defining a single function and you'll see how tiresome it soon begins to write everything out manually.