Files
lodash/.internal/basePropertyOf.js
2017-03-07 21:57:21 +01:00

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