Created
February 27, 2018 09:02
-
-
Save vldvel/d79bd31cda5834e54058f83623d95e1f to your computer and use it in GitHub Desktop.
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 sum = arr.reduce((p,c) => p + c, 0); | |
| return `${sum - Math.max(...arr)}, ${sum - Math.min(...arr)}`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment