mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +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
|
// have to define isNumber before _.each will work in IE
|
||||||
_.isNumber = function(obj) {
|
_.isNumber = function(obj) {
|
||||||
return Object.prototype.toString == '[object Number]';
|
return Object.prototype.toString.call(obj) == '[object Number]';
|
||||||
};
|
};
|
||||||
|
|
||||||
// Define the isArray, isDate, isFunction, isRegExp, and
|
// Define the isArray, isDate, isFunction, isRegExp, and
|
||||||
|
|||||||
Reference in New Issue
Block a user