JavaScriptでundefinedを評価する方法

  • ===(厳密等価演算子)
  • typeof
  • void
js
let m;

if (m != "") {
    // 実行される
}

関連記事