Remove coercion method use.

This commit is contained in:
John-David Dalton
2017-03-13 20:49:45 -07:00
parent 2f281c68b0
commit bb7c959479
33 changed files with 59 additions and 194 deletions

6
lt.js
View File

@@ -1,5 +1,3 @@
import toNumber from './toNumber.js'
/**
* Checks if `value` is less than `other`.
*
@@ -23,8 +21,8 @@ import toNumber from './toNumber.js'
*/
function lt(value, other) {
if (!(typeof value == 'string' && typeof other == 'string')) {
value = toNumber(value)
other = toNumber(other)
value = +value
other = +other
}
return value < other
}