mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
doh. messed up isNumber fix
This commit is contained in:
@@ -478,7 +478,7 @@
|
||||
|
||||
// have to define isNumber before _.each will work in IE
|
||||
_.isNumber = function(obj) {
|
||||
return Object.prototype.toString == '[object Number]';
|
||||
return Object.prototype.toString.call(obj) == '[object Number]';
|
||||
};
|
||||
|
||||
// Define the isArray, isDate, isFunction, isRegExp, and
|
||||
|
||||
Reference in New Issue
Block a user