3 lines
74 B
JavaScript
3 lines
74 B
JavaScript
module.exports = function sign(number) {
|
|
return number >= 0 ? 1 : -1;
|
|
};
|