@skyra/char
    Preparing search index...

    Function getCode

    • Returns the code point of a character.

      Parameters

      • char: string

      Returns number

      fromCode

      1.0.0

      getCode('a'); // -> 97
      fromCode(97); // -> 'a'
      getCode('💯'); // -> 128175
      fromCode(128175); // -> '💯'