Files
lodash/_basePropertyDeep.js
2017-01-06 15:41:39 -08:00

15 lines
364 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;