Returns true if variable is undefined.

如果变量没有被定义

1 _.isUndefined(window.missingVariable);
2 => true

源码:

1 _.isUndefined = function(obj) {
2 return obj === void 0;
3 };

 

 

 

posted on 2012-04-16 23:44  himanhimao  阅读(228)  评论(0编辑  收藏  举报