JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q27375F
  • License MIT

Minimal set of utilities needed to unblock functional programming.

Package Exports

  • funf

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 (funf) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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