You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
123456789 |
- const getLength = require('./get-length');
-
- const MAX_ARRAY_INDEX = 2 ** 53 - 1;
-
- module.exports = (collection) => {
- const length = getLength(collection);
-
- return typeof length == 'number' && length >= 0 && length <= MAX_ARRAY_INDEX;
- };
|