Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ardcore/funf
Minimal, hand-picked utilities needed to unblock functional programming.
https://github.com/ardcore/funf
es6 functional-programming javascript utilities
Last synced: 1 day ago
JSON representation
Minimal, hand-picked utilities needed to unblock functional programming.
- Host: GitHub
- URL: https://github.com/ardcore/funf
- Owner: ardcore
- License: mit
- Created: 2018-01-09T20:52:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-14T20:50:41.000Z (almost 7 years ago)
- Last Synced: 2023-12-27T13:05:22.692Z (11 months ago)
- Topics: es6, functional-programming, javascript, utilities
- Language: JavaScript
- Size: 20.5 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# funf!
Minimal, hand-picked and well-tested utilities needed to unlock functional programming. Zero dependencies. Provided as CJS, UMD and ESM modules.
## Utilities
- `pipe`: _(a -> b) -> (b -> c) -> a -> c_
- `compose`: _(b -> c) -> (a -> b) -> a -> c_
- `pick`: _({a}) -> ([a]) -> {a}_
- `omit`: _({a}) -> ([a]) -> {a}_
- `head`: _([a]) -> a_
- `tail`: _([a]) -> [a]_
- `curry`: _((a, b) -> c) -> a -> b -> c_
- `zip`: - _([a], [b]) -> [[a, b]]_
- `prop`: - _(a) -> ({a}) -> a_I may be adding more, but the intention is to find the perfect set of _core_ FP utilities and keep it as minimal as possible.
## Installation
`npm install funf --save` or `yarn add funf`
## Testing
`npm run test`
## License
MIT