Files
lodash/src/.internal/basePropertyOf.ts
2023-09-16 14:47:50 -07:00

13 lines
329 B
TypeScript

/**
* 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