Last active
June 18, 2020 05:04
-
-
Save geomago/e8e89ecf64a634849d4a4a40e834fe01 to your computer and use it in GitHub Desktop.
find_max_price_2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let maxPrice = cars.reduce( (prevPrice, current) => prevPrice < current.price ? current.price : prevPrice, 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment