• string {string}

    The punycode.ucs2.decode() method returns an array containing the numeric codepoint values of each Unicode symbol in the string.

    1. punycode.ucs2.decode('abc'); // [0x61, 0x62, 0x63]
    2. // surrogate pair for U+1D306 tetragram for centre:
    3. punycode.ucs2.decode('\uD834\uDF06'); // [0x1D306]