Akashic Engine

    Function charCodeAt

    • idx文字目の文字のchar codeを返す。

      これはString#charCodeAt()と次の点で異なる。

      • idx文字目が上位サロゲートの時これを16bit左シフトし、idx+1文字目の下位サロゲートと論理和をとった値を返す。
      • idx文字目が下位サロゲートの時nullを返す。

      Parameters

      • str: string

        文字を取り出される文字列

      • idx: number

        取り出される文字の位置

      Returns null | number

    MMNEPVFCICPMFPCPTTAAATR