Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
if(typeof hello! = 'undefined'){ }
入力するのが難しすぎるので、アンダースコアを使用します
公式ドキュメントによると、あなたは使用することができます_.isUndefined():
_.isUndefined()
_.isUndefined(window.missingVariable); => true
これですか? http://underscorejs.org/#isUndefined
_.isUndefined(value)