just-map-values
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "just-map-values", | ||
"version": "1.0.1", | ||
"description": "map an object, passing (value, key, object) to predicate", | ||
"version": "1.0.2", | ||
"description": "map an object, predicate updates values, recieves (value, key, object)", | ||
"main": "index.js", | ||
@@ -10,3 +10,3 @@ "scripts": { | ||
"repository": "https://github.com/angus-c/just", | ||
"keywords": ["object", "map", "value", "no-dependencies", "just"], | ||
"keywords": ["object", "map", "values", "no-dependencies", "just"], | ||
"author": "Angus Croll", | ||
@@ -13,0 +13,0 @@ "license": "MIT", |
## just-map-object | ||
Part of a [library](../../../../) of zero-dependency npm modules that do just do one thing. | ||
Part of a [library](../../../../) of zero-dependency npm modules that do just do one thing. | ||
Guilt-free utilities for every occasion. | ||
@@ -9,6 +9,5 @@ | ||
```js | ||
import map from 'just-map-object'; | ||
import map from 'just-map-values'; | ||
// map an object, applying the predicate to the value | ||
// like just-map-object, but (value, key, object) is passed to the predicate | ||
// predicate updates values, recieves (value, key, object) | ||
map({a: 3, b: 5, c: 9}, (value) => value + 1); // {a: 4, b: 6, c: 10} | ||
@@ -15,0 +14,0 @@ map({a: 3, b: 5, c: 9}, (value, key) => value + key); // {a: 3a, b: 5b, c: 9c} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1677
16