Skip to content

Instantly share code, notes, and snippets.

@findscode
Created April 27, 2018 15:52
Show Gist options
  • Save findscode/d8ac21d8879e1dae590030928c3a343f to your computer and use it in GitHub Desktop.
Save findscode/d8ac21d8879e1dae590030928c3a343f to your computer and use it in GitHub Desktop.
Max element of an array of objects
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