Package Exports
- atomic-fns
- atomic-fns/build/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
Like Lodash, but for ESNext and with types.
Stop shipping code built for browsers from 2015. Really though, look at the issues.
- Modular: Pick what you need. Works with all bundlers and also supports tree-shaking.
- Native: Uses newer data structures and control flow techniques.
- Lazy: Leverages generators, iterators and functional composition.
- Fluent: Pure functions and abstract classes. Include only what you need.
- TypeScript & JSDoc: Supports both TypeScript and latest JS spec. JSDoc for best in class experience.
This library is available as an npm package. To install the package just run:
npm install atomic-fns
How to use
import { id, reversed, sorted, times, uniqueId } from 'atomic-fns'
reverse([1, 2, 3, 4])
// => [4, 3, 2, 1]
sorted([4, 3, 2, 1])
// => [1, 2, 3, 4]
times(5, id)
// => [0, 1, 2, 3, 4]
times(5, id)
// => [0, 1, 2, 3, 4]
uniqueId('user_')
// => 'user_101225005'
Docs
🛠 Under construction.
💡 See the src
directory for comments.