just-partial-it
TypeScript icon, indicating that this package has built-in type declarations

3.4.0 • Public • Published

just-partial-it

Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.

🍦 Try it

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

Package Sidebar

Install

npm i just-partial-it

Weekly Downloads

192

Version

3.4.0

License

MIT

Unpacked Size

8.18 kB

Total Files

9

Last publish

Collaborators

  • angus-c