Necesito una función que filtre algunos elementos de la matriz, como a continuación:
¿como hacerlo? Muchas gracias de antemano !
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 }