number-array-functions-by-dedi
v1.0.1
Published
Abilities: Display array, sum, avg, max, min
Downloads
2
Readme
Numbers array functions
Installation:
npm i number-array-functions-by-dedi
Usage:
const arrayFunctions = require("password-generator-by-dedi-ofek");
const sum = arrayFunctions.getArraySum([10,20,30]);
console.log(`Sum is: ${sum}`);; // 10, 20, 30
const avg = arrayFunctions.getArrayAverage([10,20,30]);
console.log(`Average: ${avg}`); // 20
const max = arrayFunctions.getArrayMax([10,30,-34,50,200,10]);
console.log(`Max is: ${max}`); // 200
const min = arrayFunctions.getArrayMin([10,30,-34,50,200,10]);
console.log(`min is: ${min}`); // -34