camel-dot-prop-immutable
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -58,3 +58,8 @@ "use strict"; | ||
let match = camelDotMatch({ obj, prop }); | ||
return match.result || value; | ||
if (typeof match.result === "undefined") { | ||
return value; | ||
} else { | ||
return match.result; | ||
} | ||
} | ||
@@ -61,0 +66,0 @@ |
@@ -52,3 +52,8 @@ import dot from "dot-prop-immutable" | ||
let match = camelDotMatch({ obj, prop }) | ||
return match.result || value | ||
if (typeof match.result === "undefined") { | ||
return value | ||
} else { | ||
return match.result | ||
} | ||
} | ||
@@ -55,0 +60,0 @@ |
{ | ||
"name": "camel-dot-prop-immutable", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": | ||
@@ -5,0 +5,0 @@ "dot-prop-immutable w/ check for flattened props", |
@@ -30,2 +30,4 @@ import dot from "../dist" | ||
).toBe("unicorn") | ||
expect(dot.get({ foo: false }, "foo")).toBe(false) | ||
}) | ||
@@ -32,0 +34,0 @@ |
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
10127
240