how to get item from array in javascript satisfying a given condition code example Example: find all of array which satisfy condition javascript myArray.filter(x => x > 5)