MCPcopy
hub / github.com/lodash/lodash / baseProperty

Function baseProperty

lodash.js:893–897  ·  view source on GitHub ↗

* The base implementation of `_.property` without support for deep paths. * * @private * @param {string} key The key of the property to get. * @returns {Function} Returns the new accessor function.

(key)

Source from the content-addressed store, hash-verified

891 * @returns {Function} Returns the new accessor function.
892 */
893 function baseProperty(key) {
894 return function(object) {
895 return object == null ? undefined : object[key];
896 };
897 }
898
899 /**
900 * The base implementation of `_.propertyOf` without support for deep paths.

Callers 3

lodash.jsFile · 0.85
unzipFunction · 0.85
propertyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected