cm0002@lemmy.worldcake to Programmer Humor@programming.dev · 30 days agoNode Moduleslemmy.mlimagemessage-square54linkfedilinkarrow-up1727arrow-down16
arrow-up1721arrow-down1imageNode Moduleslemmy.mlcm0002@lemmy.worldcake to Programmer Humor@programming.dev · 30 days agomessage-square54linkfedilink
minus-squaremindbleach@sh.itjust.workslinkfedilinkarrow-up6·30 days agoThe thing you want from jQuery was added to all browsers in 2018.
minus-squarevithigar@lemmy.calinkfedilinkarrow-up2·29 days agoI’m currently on a crusade against lodash where I work.
minus-squaremindbleach@sh.itjust.workslinkfedilinkarrow-up1·29 days ago Lodash provides modular methods for working with arrays, objects, strings, and more. I dunno. If it makes everything Array-like act like a goddamn Array, I’m tempted to start using it. ‘What do you mean you can’t .map a Set? It’s iterable! Figure it out!’
minus-squarevithigar@lemmy.calinkfedilinkarrow-up3·29 days agoYou can though? mySet.values().map(mappingFunc) will create a new iterator transformed by the mapping function.
The thing you want from jQuery was added to all browsers in 2018.
I’m currently on a crusade against lodash where I work.
I dunno. If it makes everything Array-like act like a goddamn Array, I’m tempted to start using it.
‘What do you mean you can’t .map a Set? It’s iterable! Figure it out!’
You can though?
mySet.values().map(mappingFunc)
will create a new iterator transformed by the mapping function.