1234567891011121314151617181920212223242526272829303132333435363738 |
- import baseClamp from './_baseClamp.js';
- import toInteger from './toInteger.js';
- var MAX_ARRAY_LENGTH = 4294967295;
- function toLength(value) {
- return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;
- }
- export default toLength;
|