Skip to content

Instantly share code, notes, and snippets.

@bhaveshdaswani93
Created December 29, 2019 13:30
Show Gist options
  • Save bhaveshdaswani93/50f7792149af380a8a329645ceb35a97 to your computer and use it in GitHub Desktop.
Save bhaveshdaswani93/50f7792149af380a8a329645ceb35a97 to your computer and use it in GitHub Desktop.
Arity in javascript
const addNumber = (num1,num2) => num1+num2
const getAbsoulte = (num) => Math.abs(num)
// addNumber has arity of two
// getAbsoulte has arity of one
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment