Files
lodash/_basePropertyOf.js
2017-01-09 17:38:33 -08: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;