0.1.1 • Published 4 years ago

remainder v0.1.1

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

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 :heart: 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

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.