Last active
June 18, 2020 05:03
-
-
Save geomago/e15a0b0eb7ac7502b72f84a0a2557b99 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