Skip to content

Commit b577bae

Browse files
committed
Clarify String charCodeAt and codePointAt docs
1 parent f350b52 commit b577bae

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/lib/es2015.core.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ interface RegExpConstructor {
383383

384384
interface String {
385385
/**
386-
* Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
386+
* Returns a nonnegative integer Number less than 1114112 (0x110000) that is the Unicode code point
387387
* value of the UTF-16 encoded code point starting at the string element at position pos in
388388
* the String resulting from converting this object to a String.
389389
* If there is no element at that position, the result is undefined.

src/lib/es5.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ interface String {
400400
charAt(pos: number): string;
401401

402402
/**
403-
* Returns the Unicode value of the character at the specified location, or NaN if the index is out of bounds.
404-
* @param index The zero-based index of the desired character.
403+
* Returns the UTF-16 code unit value at the specified location, or NaN if the index is out of bounds.
404+
* @param index The zero-based index of the desired UTF-16 code unit.
405405
*/
406406
charCodeAt(index: number): number;
407407

0 commit comments

Comments
 (0)