-
Notifications
You must be signed in to change notification settings - 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 value
const xfunction = require('extra-function');
xfunction.COMPARE(1, 2);
// → -1
xfunction.COMPARE(2, 2);
// → 0
xfunction.COMPARE(3, 2);
// → 1
xfunction.COMPARE('a', 'b');
// → -1