nested-property
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -132,3 +132,3 @@ /** | ||
pathExists = !!split.reduce(function (obj, prop) { | ||
isIn = isIn || obj === objectInPath || obj[prop] === objectInPath; | ||
isIn = isIn || obj === objectInPath || (!!obj && obj[prop] === objectInPath); | ||
return obj && obj[prop]; | ||
@@ -135,0 +135,0 @@ }, object); |
{ | ||
"name": "nested-property", | ||
"description": "Read, write or test a data structure's nested property via a string like 'my.nested.property'. It works through arrays and objects.'", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"homepage": "https://github.com/cosmosio/nested-property", | ||
@@ -6,0 +6,0 @@ "licenses": [ |
@@ -184,2 +184,6 @@ Nested property | ||
### 0.0.6 - 01 MAR 2015 | ||
* Fix a bug where an invalid path to search an object into is invalid and the isInNestedProperty would throw an error instead of return false | ||
### 0.0.5 - 19 JAN 2015 | ||
@@ -186,0 +190,0 @@ |
11505
205