omit-deep-lodash
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -7,2 +7,6 @@ "use strict"; | ||
function omitDeepOnOwnProps(obj) { | ||
if (typeof input === "undefined") { | ||
return input; | ||
} | ||
if (!_.isArray(obj) && !_.isPlainObject(obj)) { | ||
@@ -28,6 +32,2 @@ return obj; | ||
if (typeof input === "undefined") { | ||
return {}; | ||
} | ||
if (_.isArray(input)) { | ||
@@ -34,0 +34,0 @@ return input.map(omitDeepOnOwnProps); |
{ | ||
"name": "omit-deep-lodash", | ||
"description": "Omit object key/values recursively with lodash as only dependency.", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/odynvolk/omit-deep-lodash", |
Sorry, the diff of this file is not supported yet
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
44428
141224