From 36cf5a7ff36625175ff386e1c6163cd38b8b7a5c Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 8 Aug 2016 15:44:49 -0700 Subject: [PATCH] Remove `_.isFunction` use from `_.toNumber`. --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index 909d6ebef..d53f28bc2 100644 --- a/lodash.js +++ b/lodash.js @@ -12018,7 +12018,7 @@ 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') {