-
Couldn't load subscription status.
- Fork 0
COMPARE
Subhajit Sahu edited this page Jul 29, 2022
·
2 revisions
Compare two values.
function COMPARE(a, b)
// a: a value
// b: another valueconst xfunction = require('extra-function');
xfunction.COMPARE(1, 2);
// → -1
xfunction.COMPARE(2, 2);
// → 0
xfunction.COMPARE(3, 2);
// → 1
xfunction.COMPARE('a', 'b');
// → -1