toCodePoint
Splits the input into an array then calls codePointAt
Created by: hackvertor
Installed 5 times
Category: String
Created on: Thursday, September 12, 2024 at 10:04:48 PM
Updated on: Tuesday, January 21, 2025 at 4:02:54 PM
Tag arguments
[]
Code
class toCodePoint {
encode(input) {
return input.split('').map(chr => chr.codePointAt().toString()).join(',');
}
}