How to iterate an object and use if statement to check a property's value – Javascript
I'm trying to filter a property called 'miles' in an array of objects. It should compare the value of the property 'miles' and return those only less than the user's miles. Next, push the value of the property 'city' into…