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

Function createSizePropertyCheck

underscore.js:214–219  ·  view source on GitHub ↗
(getSizeProperty)

Source from the content-addressed store, hash-verified

212
213 // Common internal logic for `isArrayLike` and `isBufferLike`.
214 function createSizePropertyCheck(getSizeProperty) {
215 return function(collection) {
216 var sizeProperty = getSizeProperty(collection);
217 return typeof sizeProperty == 'number' && sizeProperty >= 0 && sizeProperty <= MAX_ARRAY_INDEX;
218 }
219 }
220
221 // Internal helper to generate a function to obtain property `key` from `obj`.
222 function shallowProperty(key) {

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…