From 762e858c489732668793395177e0b4dbb2cc2399 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 16 Apr 2016 20:45:10 -0700 Subject: [PATCH] Use `isSymbol` instead of `baseToNumber` to fix `_.toNumber` test fails. --- lodash.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lodash.js b/lodash.js index ea71f8525..72385d461 100644 --- a/lodash.js +++ b/lodash.js @@ -11605,9 +11605,8 @@ if (typeof value == 'number') { return value; } - var result = baseToNumber(value); - if (result !== result) { - return result; + if (isSymbol(value)) { + return NAN; } if (isObject(value)) { var other = isFunction(value.valueOf) ? value.valueOf() : value;