endsWithIgnoreCase (JavaScript)

ストリングが、大/小文字を無視してサブストリングで終わるかどうかを検査します。

定義場所

String (Standard - JavaScript)

構文

endsWithIgnoreCase(str:string) : boolean
パラメータ 説明
str サブストリング。
戻り値 説明
boolean このストリングが大/小文字を無視してサブストリングで終わる場合、またはサブストリングが空の場合は true。

次の比較は true です。
var cities = new String("Paris   Moscow   Tokyo");
if (cities.endsWithIgnoreCase("tokyo"))
	return "Ends with Tokyo";
else
	return "Does not end with Tokyo"