Skip to content

Commit

Permalink
Remove _.isFunction use from _.toNumber.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Aug 8, 2016
1 parent 6d930d6 commit 36cf5a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lodash.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 36cf5a7

Please sign in to comment.