mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 16:52:53 +08:00
12 lines
265 B
JavaScript
12 lines
265 B
JavaScript
function get(obj, path) {
|
|
for (var i = 0, path = path.split('.'), len = path.length; i < len; i++) {
|
|
if (!obj) {
|
|
return null;
|
|
}
|
|
obj = obj[path[i]];
|
|
}
|
|
return obj;
|
|
}
|
|
exports.get = get;
|
|
;
|
|
//# sourceMappingURL=util.js.map
|