Skip to content

Instantly share code, notes, and snippets.

@wehrhaus
Last active July 18, 2018 01:58
Show Gist options
  • Save wehrhaus/a4f00adf204064e6d789c7b6da2afb8d to your computer and use it in GitHub Desktop.
Save wehrhaus/a4f00adf204064e6d789c7b6da2afb8d to your computer and use it in GitHub Desktop.
mul function for multiplication of numbers
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