awesome-cordova-plugins/dist/util.js

12 lines
265 B
JavaScript
Raw Normal View History

2015-11-25 08:37:29 +08:00
function get(obj, path) {
for (var i = 0, path = path.split('.'), len = path.length; i < len; i++) {
2015-11-30 06:30:15 +08:00
if (!obj) {
return null;
}
2015-11-25 08:37:29 +08:00
obj = obj[path[i]];
}
return obj;
}
exports.get = get;
;
2015-12-01 02:34:54 +08:00
//# sourceMappingURL=util.js.map