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

147
Views
JavaScript : Fastest way to itterate over elements of collection

I am currently pulling data from excel which I then push into an object of array. I am doing so unsing lodash. My code looks like the following :

  Output = [];
_.forEachRight(data, element => {

    obj = { 
    MyDate: element.Date,
    Cost: element.Cost,
   
    }
    
    Output.push(obj);


});
data = Output;

This takes 27000 milliesseconds for a excel dataset with over 200k entries. My question : Is there a faster way of doing the above. I dont need to use arryas so every other data structure is welcomed.

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!