1 var castPath = require(
'./_castPath'),
2 toKey = require(
'./_toKey');
12 function baseGet(
object, path) {
13 path = castPath(path,
object);
18 while (
object != null && index < length) {
19 object =
object[toKey(path[index++])];
21 return (index && index == length) ?
object : undefined;
24 module.exports = baseGet;