remainder

0.1.1 • Public • Published

Remainder

Returns the remainder of dividing two integers.

Please consider following this project's author, Nicholas DeHart, and consider starring the project to show your ❤️ and support.

Install

Install with npm:

$ npm install --save remainder

Usage

Works with strings or numbers.

const remainder = require("remainder");

console.log(remainder("4", "2")); //=> 0
console.log(remainder("2", "4")); //=> 2

console.log(remainder(4, 2)); //=> 0
console.log(remainder(2, 4)); //=> 2

About

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Author

Nicholas DeHart

License

Copyright © 2020, Nicholas DeHart. Released under the MIT License.

Package Sidebar

Install

npm i remainder

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

2.89 kB

Total Files

3

Last publish

Collaborators

  • nickdehart