Files
lodash/.internal/basePropertyDeep.js
2017-03-07 21:57:21 +01:00

15 lines
362 B
JavaScript

import baseGet from './baseGet.js'
/**
* A specialized version of `baseProperty` which supports deep paths.
*
* @private
* @param {Array|string} path The path of the property to get.
* @returns {Function} Returns the new accessor function.
*/
function basePropertyDeep(path) {
return (object) => baseGet(object, path)
}
export default basePropertyDeep