Comparing version 0.1.1 to 0.2.0
@@ -0,1 +1,8 @@ | ||
var clone = function (obj) { | ||
var out = obj; | ||
Object.keys(obj).forEach(function (key) { | ||
out[key] = obj[key]; | ||
}); | ||
return out; | ||
}; | ||
var objValues = function (obj) { | ||
@@ -95,2 +102,3 @@ return Object.keys(obj).map(function (key) { | ||
function FunctionalObject (obj) { | ||
obj = clone(obj); | ||
this.obj = obj; | ||
@@ -97,0 +105,0 @@ this.keys = new FunctionalObjectVals(obj); |
{ | ||
"name": "fn-object", | ||
"version": "0.1.1", | ||
"description": "map and filter for object's keys and values (that modify the object)", | ||
"version": "0.2.0", | ||
"description": "map and filter for object's keys and values, and get a modified object", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
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
3923
96