0.8.0 • Published 6 years ago

funf v0.8.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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

0.8.0

6 years ago

0.7.0

6 years ago

0.6.0

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago