filter first elemnt in array of object code example
Example 1: find in js
The first element that will be found by that function
const f = array1.find(e => e > 10);
Example 2: does filter change original array
Note: filter() does not change the original array.