Returns true if object is a Number (including NaN).
返回true,如果是数字类型,包括NAN
1 _.isNumber = function(obj) { 2 return toString.call(obj) == '[object Number]'; 3 };
源码:
1 _.isNumber = function(obj) { 2 return toString.call(obj) == '[object Number]'; 3 };