Created
December 29, 2019 13:30
-
-
Save bhaveshdaswani93/50f7792149af380a8a329645ceb35a97 to your computer and use it in GitHub Desktop.
Arity in javascript
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 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