• mindbleach@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          6 hours 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
            arrow-up
            2
            ·
            4 hours ago

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