Skip to content
main
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

readme.md

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