Skip to content

Commit

Permalink
added docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrannell1 committed Jul 15, 2023
1 parent 1295a3b commit 023f455
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/string/string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,13 @@ type UnicodeCategoryData = {
category: string;
};

/*
* fromCharCode fails for code-points above 0xFFFF
*
* @param codePt A code-point
*
* @returns A string representation of the code-point
*/
function fixedFromCharCode (codePt: number) {
if (codePt > 0xFFFF) {
codePt -= 0x10000;
Expand Down

0 comments on commit 023f455

Please sign in to comment.