Lodash.toLength

Converts value to an integer suitable for use as the length of an array-like object.

Note: This method is based on ToLength.

_.toLength(Number.MIN_VALUE); // => 0

_.toLength(Infinity); // => 4294967295

struct Lodash
nothrow @trusted @safe ref
toLength
()
()

Return Value

Type: auto ref

- Lodash chained on (number): the converted integer.

Meta