added to remote repo
This commit is contained in:
1 parent
8697c9f405
commit
cc599b6e18
8049 files changed
+1096323
No files matched your search
+7
@@ -0,0 +1,7 @@
|
||||
export default function dlv(obj, key, def, p, undef) {
|
||||
key = key.split ? key.split('.') : key;
|
||||
for (p = 0; p < key.length; p++) {
|
||||
obj = obj ? obj[key[p]] : undef;
|
||||
}
|
||||
return obj === undef ? def : obj;
|
||||
}
|
||||
Reference in new issue
Block a user