how to retrieve a value in array of objects using javascript es6 based on condition code example Example: find all of array which satisfy condition javascript myArray.filter(x => x > 5)