|
|
|
Conversions Argument Type Result Undefined Throw a TypeError exception. Null Throw a TypeError exception. Boolean Return a new Boolean object whose [[BooleanData]] internal slot is set to argument . See for a description of Boolean objects. Number Return a new Number object whose [[NumberData]] internal slot is set to argument . See description of Number objects. String Return a new String object whose [[StringData]] internal slot is set to argument description of String objects. Symbol Return a new Symbol object whose [[SymbolData]] internal slot is set to argument . See description of Symbol objects. BigInt Return a new BigInt object whose [[BigIntData]] internal slot is set to argument for a description of BigInt objects. Object Return argument . The abstract operation ToPropertyKey takes argument argument . It converts argument to a value that can be used as a property key. It performs the following steps when called: 1. Let key be ? ( argument , string ). 2. If ( key ) is Symbol, then a. Return key . 3. Return ! ( key ). The abstract operation ToLength takes argument argument . It converts argument to an . It performs the following steps when called: 1. Let len be ? ( argument ). 2. If len
≤ 0, return +0 𝔽 . 3. Return ( len , 2 53 - 1)). The abstract operation CanonicalNumericIndexString takes argument argument . It returns argument converted to a if it is a String representation of a Number that would be produced by "-0" . Otherwise, it returns undefined . It performs the following steps when called: 7.1.19 ToPropertyKey ( argument ) 7.1.20 ToLength ( argument ) 7.1.21 CanonicalNumericIndexString ( argument ) 122 |