nested-property
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -25,3 +25,3 @@ /** | ||
function getNestedProperty(object, property) { | ||
if (object && object instanceof Object) { | ||
if (object && typeof object == "object") { | ||
if (typeof property == "string" && property !== "") { | ||
@@ -51,3 +51,3 @@ var split = property.split("."); | ||
function setNestedProperty(object, property, value) { | ||
if (object && object instanceof Object) { | ||
if (object && typeof object == "object") { | ||
if (typeof property == "string" && property !== "") { | ||
@@ -54,0 +54,0 @@ var split = property.split("."); |
{ | ||
"name": "nested-property", | ||
"description": "Read or write an array or object's nested property via a string like 'my.nested.property'", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"homepage": "https://github.com/cosmosio/nested-property", | ||
@@ -6,0 +6,0 @@ "licenses": [ |
6192