๐String extension
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
JS โฉ value โฉ primitive โฉ String โฉ extension
add custom methods to String.prototype.
// ๐ธ str.characters - iterable iterator of characters
// ๐ธ str.codePoints - array of code points
// ๐ธ str.codeUnits - array of code units
// ๐น str.replaceWhitespaces()
replit โฉ String extension
// โญ install "grapheme-splitter": `npm install grapheme-splitter`
// 2023.01.03 - 19:40 + .codeUnits, .codePoints (support `GraphemeSplitter`)
//
// โญ String extension
// -------------------------------------------------------------------
// ๐ธ str.characters - iterable iterator of characters
// ๐ธ str.codePoints - array of code points
// ๐ธ str.codeUnits - array of code units
// ๐น str.replaceWhitespaces()
// -------------------------------------------------------------------
const