UNPKG

@shopify/polaris

Version:

Shopify’s admin product component library

14 lines (11 loc) 249 B
'use strict'; function invertNumber(number) { if (Math.sign(number) === 1) { return -Math.abs(number); } else if (Math.sign(number) === -1) { return Math.abs(number); } else { return 0; } } exports.invertNumber = invertNumber;