|
|
|
NOTE 1 When the codePointAt codePointAt method is called with one argument pos , the following steps are taken: 1. Let O be ? this value). 2. Let S O ). 3. Let position be ? ( pos ). 4. Let size be the length of S . 5. If position < 0 or position
≥
size , return undefined . 6. Let cp S , position ). 7. Return cp .[[CodePoint]]). NOTE 2 NOTE 1 When the concat concat method is called with zero or more arguments, the following steps are taken: 1. Let O be ? this value). 2. Let S O ). 3. Let R be S . 4. For each element next of args , do a. Let nextString next ). b. Set R to the of R and nextString . 5. Return R . The "length" property of the concat concat method is 1 𝔽 . NOTE 2 The initial value of String.prototype.constructor String.prototype.constructor . Returns a non-negative less than or equal to 0x10FFFF 𝔽 that is the code point value of the UTF-16 encoded code point ( ) starting at the string element at index pos within the String resulting from converting this object to a String. If there is no element at that index, the undefined . If a valid UTF-16 does not begin at pos , the result is the code unit at pos . The codePointAt codePointAt function is intentionally generic; it does not require that its this value be a String object. Therefore it can be transferred to other kinds of objects for use as a method. When the concat concat method is called it returns the String value consisting of the code units of the this value (converted to a String) followed by the code units of each of the arguments converted to a String. The result is a String value, not a String object. The concat concat function is intentionally generic; it does not require that its this value be a String object. Therefore it can be transferred to other kinds of objects for use as a method. 22.1.3.4 String.prototype.concat ( ... args ) 22.1.3.5 String.prototype.constructor 22.1.3.6 String.prototype.endsWith ( searchString [ , endPosition ] ) 557 |