arraypercentagefinder

A Javascript package that finds and returns the percentage of every array element

Features

  • Finds and returns the percentage of every array element

Install

  • npm i arraypercentagefinder

Usage/Examples

Find percentage of array of numbers

const percentagesOf = require("arraypercentagefinder");

percentagesOf([1, 2, 3, 4]);
//=> [ 'element0-10%', 'element1-20%', 'element2-30%', 'element3-40%' ]