1 | import { toInteger } from './tointeger';
|
2 | const maxSafeInteger = Math.pow(2, 53) - 1;
|
3 | /**
|
4 | * @ignore
|
5 | */
|
6 | export function toLength(value) {
|
7 | const len = toInteger(value);
|
8 | return Math.min(Math.max(len, 0), maxSafeInteger);
|
9 | }
|
10 |
|
11 | //# sourceMappingURL=tolength.mjs.map
|