Comparing version 1.0.8 to 1.0.9
@@ -54,5 +54,6 @@ /** | ||
if(keyCount === 0) return undefined; | ||
var newIdentity; | ||
switch(identityType){ | ||
case 'object' : var newIdentity = {}; keyList.forEach(key => { newIdentity[key] = identity[key]; }); return newIdentity; break; | ||
case 'array' : const newIdentity = keyList.map(key => { return identity[key]; }); return newIdentity; break; | ||
case 'object' : newIdentity = {}; keyList.forEach(key => { newIdentity[key] = identity[key]; }); return newIdentity; break; | ||
case 'array' : newIdentity = keyList.map(key => { return identity[key]; }); return newIdentity; break; | ||
} | ||
@@ -59,0 +60,0 @@ } |
{ | ||
"name": "mitsuketa", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "A Javascript library that enables you to handle deeply nested objects easily.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
8435
154