UNPKG
bs-ajv
Version:
latest (1.0.1)
1.1.0
1.0.1
1.0.0
BucklesScript bindings to Ajv (Another JSON Validator)
github.com/scull7/bs-ajv
scull7/bs-ajv
bs-ajv
/
node_modules.lol
/
core-js
/
modules
/
_math-sign.js
6 lines
(5 loc)
•
179 B
JavaScript
View Raw
1
2
3
4
5
6
// 20.2.2.28 Math.sign(x)
module
.
exports
=
Math
.
sign
||
function
sign
(
x
) {
// eslint-disable-next-line no-self-compare
return
(x = +x) ==
0
|| x != x ? x : x <
0
? -
1
:
1
; };