TypeScript文字列startsWith
repeat

startsWith文字列

endsWith

指定した文字列で始まるか確認します。

構文

str.startsWith(searchStr, position?): boolean