(collection)
| 135 | var MAX_ARRAY_INDEX = Math.pow(2, 53) - 1; |
| 136 | var getLength = property('length'); |
| 137 | var isArrayLike = function(collection) { |
| 138 | var length = getLength(collection); |
| 139 | return typeof length == 'number' && length >= 0 && length <= MAX_ARRAY_INDEX; |
| 140 | }; |
| 141 | |
| 142 | // Collection Functions |
| 143 | // -------------------- |
no outgoing calls
no test coverage detected