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, September 18, 2024 at 4:16:56 AM

This is a built in tag

Tag arguments
[]
Code
class toCodePoint {
  encode(input) {
    return input.split('').map(chr => chr.codePointAt().toString()).join(',');
  }
}