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: Wednesday, January 15, 2025 at 3:08:05 PM
Tag arguments
[]
Code
class toCodePoint {
encode(input) {
return input.split('').map(chr => chr.codePointAt().toString()).join(',');
}
}