source: frontend/node_modules/underscore/modules/_deepGet.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 280 bytes
Line 
1// Internal function to obtain a nested property in `obj` along `path`.
2export default function deepGet(obj, path) {
3 var length = path.length;
4 for (var i = 0; i < length; i++) {
5 if (obj == null) return void 0;
6 obj = obj[path[i]];
7 }
8 return length ? obj : void 0;
9}
Note: See TracBrowser for help on using the repository browser.