Rim 073cff8914 initial commit
migrate files over from github
2025-03-14 07:53:23 -04:00

12 lines
214 B
JavaScript

'use strict';
var $isNaN = require('./isNaN');
/** @type {import('./sign')} */
module.exports = function sign(number) {
if ($isNaN(number) || number === 0) {
return number;
}
return number < 0 ? -1 : +1;
};