Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

filter array of objects react

<div>
  {people.filter(person => person.age < 60).map(filteredPerson => (
    <li>
      {filteredPerson.name}
    li>
  ))}
div>
Source by upmostly.com #
 
PREVIOUS NEXT
Tagged: #filter #array #objects #react
ADD COMMENT
Topic
Name
1+9 =