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: Saturday, October 12, 2024 at 11:51:00 AM

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