Merge pull request #48 from alonronin/patch-1

reverse arguments
This commit is contained in:
Artem Zakharchenko 2021-02-25 12:32:35 +01:00 committed by GitHub
commit 99ff58ce66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -269,7 +269,7 @@ A function is often an action on _something_. It is important to state what its
```js
/* A pure function operating with primitives */
function filter(predicate, list) {
function filter(list, predicate) {
return list.filter(predicate)
}