-
Notifications
You must be signed in to change notification settings - Fork 0
signEqual
Subhajit Sahu edited this page Aug 1, 2022
·
15 revisions
Checks if two values have equal sign.
signEqual(x, y)
// x: first int32
// y: second int32
const xinteger = require('extra-integer');
xinteger.signEqual(20, 12);
// → true
xinteger.signEqual(20, -13);
// → false
xinteger.signEqual(-21, -13);
// → true