Skip to content

glopezep/opposite-number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opposite-number

Get opposite of a number.

Install

npm install --save opposite-number

Usage

const oppositeNumber = require('opposite-number')
const result = oppositeNumber(-100) // -> 100

API

oppositeNumber(number: Number) -> Number

  • number (Number) number to get its opposite

License

MIT © Guillermo Lopez

About

Get opposite of a number.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published