指定インデックスの文字を返す。負のインデックスで末尾から取得
'hello'.at(0); // 'h' 'hello'.at(-1); // 'o' (末尾の文字) 'hello'.at(-2); // 'l'
ES2022で追加。末尾文字を取得する str[str.length-1] の代わりにシンプルに書ける。
split()
replace() / replaceAll()
includes() / startsWith() / endsWith()
trim() / trimStart() / trimEnd()
前の関数
repeat()
次の関数
Object.keys() / values() / entries()