// ๐ธ str.removeWhitespaces() String.prototype.removeWhitespaces = function() { return this.replace(/\s+/g, ''); };
๐็ฏไพ๏ผ
// multi-line string let str = ` as void async while `; str.removeWhitespaces() // "asvoidasyncwhile"
str.replaceWhitespaces() - replace white-spaces with specific delimiter.
ไธ่ฝ่ฃ่ๅๅฎ
ๅ็ญๅนณๅๅๅไธๅ
Last updated 2 years ago