JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 80
  • Score
    100M100P100Q62307F
  • License Apache-2.0

Like Lodash, but for ESNext and with types. Stop shipping code built for browsers from 2015.

Package Exports

  • atomic-fns
  • atomic-fns/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (atomic-fns) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

atomic-fns

Read the Docs

Like Lodash, but for ESNext and with types.

Stop shipping code built for browsers from 2015. Really though, look at the issues.

You may prefer this because it's:

  • Modular: Pick what you need. Works with all bundlers and also supports tree-shaking.
  • ESNext: Uses modern idiomatic syntax, data structures, and control flow techniques.
  • Lazy: Leverage generators, iterators, and functional composition.
  • Zero deps: Built from scratch with no dependencies whatsoever.
  • Well tested: All modules have comprehensive test suites aiming for 100% coverage.
  • TypeScript & docs: Includes type declaration files and js with JSDocs for best in class experience.

Get Started

This library is available as an npm package. To install the package just run:

npm install atomic-fns

How to use

import { reversed, sorted, times, uniqueId } from 'atomic-fns'

reversed([1, 2, 3, 4])
// -> [4, 3, 2, 1]

sorted([4, 3, 2, 1])
// -> [1, 2, 3, 4]

times(5, (i) => i)
// -> [0, 1, 2, 3, 4]

uniqueId('user_')
// -> 'user_101225005'

Docs

📖 Available on atomic-fns.dev

💡 See the src directory for comments.

License

Apache License 2.0