ohctechv3/.svn/pristine/33/33b60f71f3cbf5f26607a2b7356070f8f6953223.svn-base

15 lines
358 B
Plaintext
Raw Normal View History

2024-10-28 15:03:36 +05:30
/**
* 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 function(key) {
return object == null ? undefined : object[key];
};
}
module.exports = basePropertyOf;