Last active
July 18, 2018 01:58
-
-
Save wehrhaus/a4f00adf204064e6d789c7b6da2afb8d to your computer and use it in GitHub Desktop.
mul function for multiplication of numbers
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 multiply = (...n) => n.map(n => +n).reduce((acc, cur) => acc * cur); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment