1.1.5 • Published 4 years ago

js-calculations v1.1.5

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

JS-CALULATIONS

jc gives you an easy way to avoid chains of if and else statements.

Components

  • Calc - A function that calculates if 2 arguments are true or false, and sets a third argument to the answer.
  • Rand - A function that creates a random number, takes in 1 arguments.
  • Maths - A function that calculate. two arguments in nearly any way.
  • Check - A function that checks if the first argument is == to the second argument and returns the value.

Examples

#1

const jc = require("js-calculations");

var A = jc.Calc(1, 2, "==");

console.log(A);

#2

const jc = require("js-calculations");

var A = jc.Maths(1, 2, "==");

console.log(A)

#3

const jc = require("js-calculations");

var A = jc.Check(1, 2);

console.log(A);

#4

const jc = require("js-calculations");

var A = jc.rand(100);

console.log(A);