Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

214
Views
How to remove a number from an array if the number is less than 800?

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.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!