Comparing version 1.4.0 to 1.4.1
@@ -10,2 +10,3 @@ function isObject (o, allowArray) { | ||
function get (obj, path, dft) { | ||
if(!isObject(obj, true)) return dft | ||
if(isBasic(path)) return obj[path] | ||
@@ -12,0 +13,0 @@ for(var i = 0; i < path.length; i++) { |
{ | ||
"name": "libnested", | ||
"description": "", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"homepage": "https://github.com/dominictarr/libnested", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -24,3 +24,8 @@ | ||
t.deepEqual( | ||
R.get(null, ['bar']), | ||
undefined | ||
) | ||
t.deepEqual( | ||
@@ -145,1 +150,2 @@ R.paths({foo: {bar: true}, baz: 2}), | ||
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
8092
204