MCPcopy Index your code
hub / github.com/jashkenas/underscore / shallowProperty

Function shallowProperty

underscore.js:222–226  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

220
221 // Internal helper to generate a function to obtain property `key` from `obj`.
222 function shallowProperty(key) {
223 return function(obj) {
224 return obj == null ? void 0 : obj[key];
225 };
226 }
227
228 // Internal helper to obtain the `byteLength` property of an object.
229 var getByteLength = shallowProperty('byteLength');

Callers 1

underscore.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…