Simple & efficient implementation of common mathematic functions unavailable in Math module
npm install simple-mathematicsimple-mathematic package can be used in both NodeJs and in browser.
simple-mathematic as npm package:
bash
npm install simple-mathematic
`
The aim of the package is to use functions in the same manner as we would do with native built-in JavaScript's Math module:
`js
import { sum, isOdd, isEven } from 'simple-mathematic';
sum(1,2,3,4,5); // 15
isOdd(123); // true
isEven(123); // false
``