mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Bump to v4.15.0.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
var isFunction = require('./isFunction'),
|
||||
isObject = require('./isObject'),
|
||||
var isObject = require('./isObject'),
|
||||
isSymbol = require('./isSymbol');
|
||||
|
||||
/** Used as references for various `Number` constants. */
|
||||
@@ -51,7 +50,7 @@ function toNumber(value) {
|
||||
return NAN;
|
||||
}
|
||||
if (isObject(value)) {
|
||||
var other = isFunction(value.valueOf) ? value.valueOf() : value;
|
||||
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
||||
value = isObject(other) ? (other + '') : other;
|
||||
}
|
||||
if (typeof value != 'string') {
|
||||
|
||||
Reference in New Issue
Block a user