@wjuy/getvalues
v1.0.0
Published
get the value of object
Downloads
2
Readme
getvalues
简化lodash get方法
var object = { 'a': [{ 'b': { 'c': 3 } }] };
getvalues(object, 'a[0].b.c'); // => 3
getvalues(object, ['a', '0', 'b', 'c']); // => 3
getvalues(object, 'a.b.c', 'default'); // => 'default'