javascript get first in array by predicate code example Example: find all of array which satisfy condition javascript myArray.filter(x => x > 5)