I have an array that contains integers:
var _ListsvotesArray = [600, 2000, 6000, 400,1000];
// declare number of voters and number of seats
var _NumOftotalVoters = 10000;
var _NumAssForRegion = 13;
//divide the two numbers
var Quotient = _NumOftotalVoters / _NumAssForRegion;
What I'm trying to achieve: I want for every item in the array, if the "_ListsvotesArray[i]" is less than the "Quotient", i would like to remove it from the array
So, Let's consider the quotient is equal to "700", the new array should be:
var _ListsvotesArray = [2000, 6000,1000];
So how could I achieve the result above using Javascript?
Any help would be appreciated.
Thank you.