how to select all items from array depending on condition in js code example Example: find all of array which satisfy condition javascript myArray.filter(x => x > 5)