Home

Awesome

Deprecated as this is now natively available in all modern browsers and Node.js versions.


math-sign

ES2015 Math.sign() ponyfill

Install

$ npm install --save math-sign

Usage

var mathSign = require('math-sign');

mathSign(5);
//=> 1

mathSign(-2);
//=> -1

License

MIT © Sindre Sorhus