As the javascript universe grows more and more, you can't be wasting your time writing
stupid math operation logic. Besides, your node-modules
folder isn't quite as massive
as it could be. Enters kaposkes-math-lib
, the solution to all your problems.
Without kaposkes-math-lib
:
// Hard to understand, bloated with symbols. What am I, a mathematician?
const bestNumber = (28 + 8) * 2 + 1;
With kaposkes-math-lib
:
import { add, mul } from 'kaposkes-math-lib'
// Clear, concise, no weird symbols. Trully functional
const bestNumber = add(mul(add(28, 8), 2), 1);
npm install kaposkes-math-lib
import { add, mul } from 'kaposkes-math-lib'
const bestNumber = add(mul(add(28, 8), 2), 1);