Skip to content

georapbox/js-fp-utils

Repository files navigation

Build Status Coverage Status

js-fp-utils

Javascript functional programming utilities

Utilities

Name Description
curry Returns a curried equivalent of the provided function.
compose Performs right-to-left function composition.
flip Creates a function that invokes the original function with its parameters reversed.
partial Creates a new function that invokes the provided function with partials prepended to the arguments it receives.
partialRight Creates a new function that invokes the provided function with partials appended to the arguments it receives.
pipe Performs left-to-right function composition.
trace Inspect the values between functions in a point-free style when using function composition.

Tests

$ npm run test

License

The MIT License (MIT)