node-divmod
npm i divmod
import divmod from 'divmod';
divmod(132, 7); // => [18, 6]
divmod(65, -4); // => [-17, 1]
divmod(-12, 5); // => [-3, -2]
divmod(-93, -6); // => [15, -3]
- Fork it!
- Create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request :D
npm test
© sugarshin