viability
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Viability!

Viability is a Utility Package that is VERY easy to use!

Addition

const viability = require("viability");

console.log(viability.add(500, 500)) //500 + 500
//Expected Output: 1000

ArrayRandomizer

const viability = require("viability");

let array = [
  "Hello",
  "Hey",
  "Hi",
  "Wassup",
  "KianIsCool"
]

console.log(viability.ArrayRandomizer(array))
//Get's a random item from the array

Division

const viability = require("viability");

console.log(viability.divide(6, 2)) //6 ÷ 2
//Expected Output: 3

Multiplication

const viability = require("viability");

console.log(viability.multiply(2, 5)) //2 x 5
//Expected Output: 10

ArrayShuffle

const viability = require("viability");

let array = [
  "Hello",
  "Hey",
  "Hi",
  "Wassup",
  "KianIsCool"
]

console.log(viability.ArrayShuffle(array))
//Shuffle's the item's in the array

Subtraction

const viability = require("viability");

console.log(viability.subtract(10, 4)) //10 - 4
//Expected Output: 6

Readme

Keywords

Package Sidebar

Install

npm i viability

Weekly Downloads

3

Version

1.0.2

License

ISC

Unpacked Size

11.6 kB

Total Files

9

Last publish

Collaborators

  • kianblob