文字列を区切り文字で分割し配列を返す
'a,b,c'.split(','); // ['a','b','c'] 'hello'.split(''); // ['h','e','l','l','o'] 'a b c'.split(/s+/); // ['a','b','c'] 'a,b,c,d'.split(',', 2); // ['a','b'] (最大2件)
正規表現も使用可能。第2引数で最大分割数を指定できる。
replace() / replaceAll()
includes() / startsWith() / endsWith()
trim() / trimStart() / trimEnd()
padStart() / padEnd()
前の関数
at()
次の関数