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

80
Views
javascript how to filter various items in array

I need a function that filter some items from array ,like below:

how to make it? Thank you so much in advance !

const users = [
   {id:"1",name:"Jane"},
   {id:"2",name:"Lucy"},
   {id:"3",name:"Li Li"},
   {id:"4",name:"Hilton"},
   {id:"5",name:"Rose"},
   {id:"6",name:"Ha Ha"},
]

//user with this id need to been remove.
const filteredUsers = [
   '1','2','5'
]

function filterUsers(allUsers,filteredUsers){
   //return after filtered list
}
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!