• @[email protected]
    link
    fedilink
    342 months ago

    Maybe we wouldn’t need external libraries to do basic things if JavaScript had a standard library

        • @[email protected]
          link
          fedilink
          12 months 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!’

          • @[email protected]
            link
            fedilink
            32 months ago

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