Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript array filter with multiple id

let itemsids = [1,45,7.4]
const result = data.items.filter((e) => itemsids.includes(e.id))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #array #filter #multiple #id
ADD COMMENT
Topic
Name
8+4 =