mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Move internal modules to “internal” folder.
This commit is contained in:
14
.internal/basePropertyDeep.js
Normal file
14
.internal/basePropertyDeep.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import baseGet from './.internal/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;
|
||||
Reference in New Issue
Block a user