to-length-x
Shim for ToLength.
See: 7.1.15 ToLength ( argument )
module.exports(value)
⇒ *
⏏
to-length-x
⇒ *
Converts value
to an integer suitable for use as the length of an
array-like object. (ES2019)
Kind: static property of to-length-x
Returns: number
- Returns the converted integer.
Param | Type | Description |
---|---|---|
value | * |
The value to convert. |
Example
var toLength = toLength2018;; // 3; // 0; // Number.MAX_SAFE_INTEGER; // 3