just-partial-it
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "just-partial-it", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "return a partial function", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
## just-partial-it | ||
Part of a [library](../../../../) of zero-dependency npm modules that do just do one thing. | ||
Part of a [library](https://anguscroll.com/just) of zero-dependency npm modules that do just do one thing. | ||
Guilt-free utilities for every occasion. | ||
[Try it now](http://anguscroll.com/just/just-partial-it) | ||
[`🍦 Try it`](https://anguscroll.com/just/just-partial-it) | ||
```shell | ||
npm install just-partial-it | ||
``` | ||
```shell | ||
yarn add just-partial-it | ||
``` | ||
Return a partial function | ||
```js | ||
import partial from 'just-partial-it'; | ||
const cubedRoot = partial(Math.pow, _, 1/3); | ||
const cubedRoot = partial(Math.pow, undefined, 1/3); | ||
cubedRoot(64); // 4 | ||
@@ -17,1 +26,2 @@ | ||
``` | ||
``` |
3712
27