Online documentation - here
Test coverage report - here
npm i ts-prime
yarn add ts-prime
Then in .js or .ts
import * as P from "ts-prime"; // tree-shaking supported!
There are no universal utility libraries that fits my development need. Most of the development libraries did had function that I needed in day to day development.
- The usage must be programmer-friendly, and that's more important than following the XYZ paradigm strictly.
- Manual annotation should never be required, and proper typings should infer everything. The only exception is the first function in
createPipe
. - E6 polyfill is required. Core methods are reused, and data structure (like Map/Set) are not re-implemented.
- The implementation of each function should be as minimal as possible. Tree-shaking is supported by default. (Do you know that
lodash.keyBy
has 14KB after minification?) - All functions are immutable, and there are no side-effects.
- Fixed number of arguments.
- Designed with typescript limitations in mind
MIT