- Progressive Web App with Express + JSON backend - PIN-based auth, multi-device sync - Invoice + Statement PDF generation (branded, Grandstander + Nunito) - Mobile + Desktop responsive layouts - n8n backup integration - Custom logo upload - Settings for business info, fees, banking - Bulk invoice generation - Web Share API integration
11 lines
214 B
JavaScript
11 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;
|
|
};
|