just-partial-it
v3.4.0
Published
return a partial function
Downloads
9,658
Maintainers
Readme
just-partial-it
Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.
npm install just-partial-it
yarn add just-partial-it
Return a partial function
import partial from 'just-partial-it';
const cubedRoot = partial(Math.pow, _, 1/3);
cubedRoot(64); // 4
const getRoot = partial(Math.pow, 64);
getRoot(1/2); // 8