just-map-values
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "just-map-values", | ||
"version": "1.0.2", | ||
"description": "map an object, predicate updates values, recieves (value, key, object)", | ||
"version": "1.0.3", | ||
"description": | ||
"map an object, predicate updates values, recieves (value, key, object)", | ||
"main": "index.js", | ||
@@ -6,0 +7,0 @@ "scripts": { |
@@ -11,6 +11,6 @@ ## just-map-object | ||
// predicate updates values, recieves (value, key, object) | ||
// predicate updates values, recieves (value, key, obj) | ||
map({a: 3, b: 5, c: 9}, (value) => value + 1); // {a: 4, b: 6, c: 10} | ||
map({a: 3, b: 5, c: 9}, (value, key) => value + key); // {a: 3a, b: 5b, c: 9c} | ||
map({a: 3, b: 5, c: 9}, (value, key, object) => object.b); // {a: 5, b: 5, c: 5} | ||
map({a: 3, b: 5, c: 9}, (value, key, obj) => obj.b); // {a: 5, b: 5, c: 5} | ||
``` |
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
1672