mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
13 lines
329 B
JavaScript
13 lines
329 B
JavaScript
/**
|
|
* The base implementation of `propertyOf` without support for deep paths.
|
|
*
|
|
* @private
|
|
* @param {Object} object The object to query.
|
|
* @returns {Function} Returns the new accessor function.
|
|
*/
|
|
function basePropertyOf(object) {
|
|
return (key) => object == null ? undefined : object[key]
|
|
}
|
|
|
|
export default basePropertyOf
|