Returns true if the value of object is null

返回true,如果值是null对象

1 _.isNull(null);
2 => true
3 _.isNull(undefined);
4 => false

源码:

1  _.isNull = function(obj) {
2     return obj === null;
3   };

 

 

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