fix(instance-wrapper):

This commit is contained in:
Ibrahim Hadeed
2016-04-29 21:46:35 -04:00
parent 0b15a2f037
commit 94a8a296c1
3 changed files with 68 additions and 41 deletions
+1
View File
@@ -1,4 +1,5 @@
export function get(obj, path) {
console.log(obj, path);
for(var i = 0, path = path.split('.'), len = path.length; i < len; i++) {
if(!obj) { return null; }
obj = obj[path[i]];