Created
April 27, 2018 15:52
-
-
Save findscode/d8ac21d8879e1dae590030928c3a343f to your computer and use it in GitHub Desktop.
Max element of an array of objects
This file contains 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
Math.max(...container.map((element) => element.field)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment