MCPcopy Create free account
hub / github.com/TruthHun/BookStack / isArrayLike

Function isArrayLike

static/word2md/mammoth.browser.js:27993–27996  ·  view source on GitHub ↗
(collection)

Source from the content-addressed store, hash-verified

27991 var MAX_ARRAY_INDEX = Math.pow(2, 53) - 1;
27992 var getLength = property('length');
27993 var isArrayLike = function(collection) {
27994 var length = getLength(collection);
27995 return typeof length == 'number' && length >= 0 && length <= MAX_ARRAY_INDEX;
27996 };
27997
27998 // Collection Functions
27999 // --------------------

Callers 3

mammoth.browser.jsFile · 0.70
createReduceFunction · 0.70
flattenFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected