mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
15 lines
362 B
JavaScript
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
|