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

167
Views
how do i remove a specific object from a array

I need to remove a specific object with "id":"61d279c1d95e56527e2bdae8" from array of objects.

array would look like,

[
{
"id":"61d279c1d95e56527e2bdae8",
"name":"Cushlon Fleece Blanket (Solid, 150cmx230cm) - Dark Grey",
"price":2999,
"quantity":1
},
{
"id":"61ceaf75ebaef7ca9f60c7bb",
"name":"Skin Soft 100 % Cotton Super King Bedsheet With 2 Pillowcases - Pastel",
"productPictures":"i3bxaBh8a-pastel.jpeg",
"description":"sabdsjbfjsd",
"price":899,
"quantity":1
},
]
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

it's really simple by using the filter higher order function

const filteredArray = oldArray.filter(item=> item.id!=="61d279c1d95e56527e2bdae8")
about 4 years ago · Juan Pablo Isaza Report
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!