▲ 721 ▼ Node Modules (lemmy.ml) submitted 1 year ago by cm0002@lemmy.world to c/programmer_humor@programming.dev 54 comments fedilink hide all child comments
[–] vithigar@lemmy.ca 3 points 1 year ago (2 children) I'm currently on a crusade against lodash where I work. permalink fedilink source parent hideshow 2 child comments replies: [–] mindbleach@sh.itjust.works 1 point 1 year ago (1 child) 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!' permalink fedilink source parent hideshow 1 child comment replies: [–] vithigar@lemmy.ca 3 points 1 year ago You can though? mySet.values().map(mappingFunc) will create a new iterator transformed by the mapping function. permalink fedilink source parent
[–] mindbleach@sh.itjust.works 1 point 1 year ago (1 child) 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!' permalink fedilink source parent hideshow 1 child comment replies: [–] vithigar@lemmy.ca 3 points 1 year ago You can though? mySet.values().map(mappingFunc) will create a new iterator transformed by the mapping function. permalink fedilink source parent
[–] vithigar@lemmy.ca 3 points 1 year ago You can though? mySet.values().map(mappingFunc) will create a new iterator transformed by the mapping function. permalink fedilink source parent