Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to filter array objesct in express node js

var data = [
  // the array to be filtered
];

var filteredArray = data.filter(item => (item.name === req.query.q));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #filter #array #objesct #express #node #js
ADD COMMENT
Topic
Name
2+7 =