Function fromCode

  • Returns the character from a code point.

    Parameters

    • code: number

    Returns string

    getCode

    1.0.0

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