181c62f80aa8185e2e7d194d8cede6ec040babc6262dd67576e47ffd9736a9aa.json 721 B

1
  1. {"ast":null,"code":"import castPath from './_castPath.js';\nimport toKey from './_toKey.js';\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n path = castPath(path, object);\n var index = 0,\n length = path.length;\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return index && index == length ? object : undefined;\n}\nexport default baseGet;","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}