LoginSignup
7
6

More than 5 years have passed since last update.

JavaScriptのequalsIgnoreCase(大文字小文字を無視した同値判定)

Posted at

どうやらバッチリあてはまるメソッドはないっぽい??
toUpperCaseを使って、どちらも大文字にしてから比較しているようでした。

var areEqual = string1.toUpperCase() === string2.toUpperCase();
7
6
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6