1"use strict"; 2 3Object.defineProperty(exports, "__esModule", { 4 value: true 5}); 6exports.get = get; 7 8/** `lodash.get` */ 9function get(obj, key) { 10 const branches = key.split('.'); 11 let current = obj; 12 let branch; 13 14 while (branch = branches.shift()) { 15 if (!(branch in current)) { 16 return undefined; 17 } 18 19 current = current[branch]; 20 } 21 22 return current; 23} 24//# sourceMappingURL=obj.js.map