Last active
May 7, 2019 16:17
-
-
Save navasiloy/93cdacf8d372d2967021500a5abe59e5 to your computer and use it in GitHub Desktop.
orda
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
const sub = function(init, ...substractors) { | |
if (!substractors.length) { | |
return init; | |
} | |
return init - substractors.reduce((a, v) => a + v) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment