Welcome to mirror list, hosted at ThFree Co, Russian Federation.
1 2 3
module.exports = function sign(number) { return number >= 0 ? 1 : -1; };