For further actions, you may consider blocking this person and/or reporting abuse
Read next
Building a Responsive, Drag-and-Drop Image Gallery with React and Tailwind CSS 🎨
Julfikar Haidar -
Deploying NestJS Application using Vercel and Supabase
Abayomi Olatunji -
Week 4 Recap of #100DaysOfCode: From Creative CSS to JavaScript Adventures 🚀
heritech9 -
Detailed Comparison of Prettier, Biomejs, and VoidZero
Hassan Azhar -
Top comments (5)
Find allows you to get a single (also the first) element from a array matching your condition while filter returns all elements matching your condition.
thanks @adrian Jakob
thanks @lukeshiru
Find stops after the first match and returns that or undefined if there is none, filter always returns an array of all matches or an empty one if there are none.
Thanks @alex Lohr