just-partial-it
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "just-partial-it", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "return a partial function", | ||
@@ -10,8 +10,3 @@ "main": "index.js", | ||
"repository": "https://github.com/angus-c/just", | ||
"keywords": [ | ||
"function", | ||
"partial", | ||
"no-dependencies", | ||
"just" | ||
], | ||
"keywords": ["function", "partial", "no-dependencies", "just"], | ||
"author": "Angus Croll", | ||
@@ -18,0 +13,0 @@ "license": "MIT", |
@@ -11,5 +11,7 @@ ## just-partial-it | ||
const cubedRoot = partial(Math.pow, undefined, 1/3); | ||
cubedRoot(10).toFixed(1); // 56.7 | ||
cubedRoot(35).toFixed(1); // 16.2 | ||
const cubedRoot = partial(Math.pow, _, 1/3); | ||
cubedRoot(64); // 4 | ||
const getRoot = partial(Math.pow, 64); | ||
getRoot(1/2); // 8 | ||
``` |
17
1468