• @mindbleach@sh.itjust.works
    link
    fedilink
    06 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!’

    • @vithigar@lemmy.ca
      link
      fedilink
      06 days ago

      You can though? mySet.values().map(mappingFunc) will create a new iterator transformed by the mapping function.