mirror of
https://github.com/rjNemo/functional-programming-jargon
synced 2026-06-12 13:36:40 +00:00
commit
ec3517ca6b
1 changed files with 17 additions and 7 deletions
12
readme.md
12
readme.md
|
|
@ -7,7 +7,17 @@ __Let's try and define these with examples, this is a WIP please feel free to se
|
|||
|
||||
## Arity
|
||||
|
||||
---
|
||||
> The number of arguments a function takes.
|
||||
|
||||
```js
|
||||
const sum = (a, b) => a + b;
|
||||
|
||||
const arity = sum.length;
|
||||
console.log(arity);
|
||||
// => 2
|
||||
// The arity of sum is 2
|
||||
```
|
||||
|
||||
|
||||
## Purity
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue