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

99
Views
Lodash return object of array that have true value in object

I have an array of objects, Like for example if I have 4 objects in the array. I just want to return those object which has status: true. Could someone please help me with how to resolve this issue? thanks

  const inputArray = [
    {id: 1, status: true},
    {id: 2, status: true},
    {id: 3, status: false},
    {id: 4, status: true},
    {id: 5, status: true},
    {id: 6, status: false}
];





 const countDeliveredDeliveries = (array) => {
    let result = array.map(function (item) {
      return item.status === "Delievered";
    });

    console.log("@@ reesult", result);
  };
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!