MCPcopy
hub / github.com/jashkenas/underscore / shallowProperty

Function shallowProperty

underscore-node-f.cjs:215–219  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

213
214// Internal helper to generate a function to obtain property `key` from `obj`.
215function shallowProperty(key) {
216 return function(obj) {
217 return obj == null ? void 0 : obj[key];
218 };
219}
220
221// Internal helper to obtain the `byteLength` property of an object.
222var getByteLength = shallowProperty('byteLength');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…