boxed-immutable
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -81,16 +81,2 @@ "use strict"; | ||
function deleteItems(arr) { | ||
if (arguments.length > 1) { | ||
let i = arguments.length; | ||
while (--i) { | ||
let index = arr.indexOf(arguments[i]); | ||
if (index >= 0) { | ||
arr.splice(index, 1); | ||
} | ||
} | ||
} | ||
return arr; | ||
} | ||
function isBoxedOnDemand(arg) { | ||
@@ -141,3 +127,3 @@ return util.isObject(arg) && arg.constructor === BoxedOnDemand; | ||
const keys = Reflect.ownKeys(target.getBoxed()); | ||
return deleteItems(keys, target.saveBoxedProp, target.cancelBoxedProp); | ||
return util.deleteItems(keys, target.saveBoxedProp, target.cancelBoxedProp); | ||
} | ||
@@ -144,0 +130,0 @@ throw "BoxedOnDemandHandler: IllegalArgument expected BoxedOnDemand target"; |
@@ -188,2 +188,16 @@ "use strict"; | ||
function deleteItems(arr) { | ||
if (arguments.length > 1) { | ||
let i = arguments.length; | ||
while (--i) { | ||
let index = arr.indexOf(arguments[i]); | ||
if (index >= 0) { | ||
arr.splice(index, 1); | ||
} | ||
} | ||
} | ||
return arr; | ||
} | ||
exports.deleteItems = deleteItems; |
{ | ||
"name": "boxed-immutable", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Immutable proxy wrapper with auto-vivification", |
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
120499
2794