• Given a single character string, returns the char code of the first character.

    Parameters

    • str: string

      A single character string from which to get the first code point.

    Returns number