endWith endWith

2 番目のパラメーターが最初のパラメーターの末尾にある場合、true を返します。

カテゴリ

文字列

関数の構文

endWith(<parameters>)

パラメーター

パラメーター
タイプ
文字列
文字列
末尾の文字列
文字列

シグネチャと戻り値のタイプ

endWith(<string>,<string>)

ブール値を返します。

endWith("Hello World", "World")

true を返します。

endWith("Hello World", "Hello")

false を返します。

recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76