Last active
April 20, 2018 19:45
-
-
Save codermarcos/8883b8e0c0d01c73982d032b9d91ffa6 to your computer and use it in GitHub Desktop.
Exception: SyntaxError: expected expression, got '...'
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
var bugsByHr = [6, 9, 3] | |
var tasksByHr = [4, 2, 6, 4] | |
[...tasksByHr, ...bugsByHr].reduce((p, c) => p + c, 0) | |
// Exception: SyntaxError: expected expression, got '...' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment