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