Skip to content

Instantly share code, notes, and snippets.

@JimRottinger
Last active June 13, 2019 19:47
Show Gist options
  • Save JimRottinger/40282e75f9ada87a87ad940c22de90b6 to your computer and use it in GitHub Desktop.
Save JimRottinger/40282e75f9ada87a87ad940c22de90b6 to your computer and use it in GitHub Desktop.
function sum({a = 1, b = 2, c = 3}) {
return a + b + c
}
sum({b: 10, a: 5}) // 5 + 10 + 3 = 18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment