mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 14:37:49 +00:00
15 lines
364 B
JavaScript
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;
|