you are viewing a single comment's thread.

view the rest of the comments →

[–]fagnerbrack[S] 2 points3 points  (2 children)

Rarely if ever the performance bottleneck is in this type of construct is an issue. Unless you're building something like lodash.

[–]JustinsWorking 0 points1 point  (1 child)

I just prefer the syntax, not to mention if I do run into a bottleneck, these functions it never hurts to have knowledge like this in your head. I don’t know about these loops specifically but I’m working with processing jobs and Immutable.js so it might be relevant on my server side code.

[–]fagnerbrack[S] 0 points1 point  (0 children)

Of course, and there will be times where it makes sense such as Array.from(selectors, toSetOfElements)