Skip to content

sugarshin/node-divmod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

divmod

Build Status GitHub version License

node-divmod

npm i divmod

Usage

import divmod from 'divmod';

example

divmod(132, 7); // => [18, 6]

divmod(65, -4); // => [-17, 1]

divmod(-12, 5); // => [-3, -2]

divmod(-93, -6); // => [15, -3]

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Test

npm test

License

MIT

© sugarshin