reverse arguments

This commit is contained in:
Alon Valadji 2021-02-25 00:30:28 +02:00 committed by GitHub
parent 582326c31d
commit bd79998d01
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 ```js
/* A pure function operating with primitives */ /* A pure function operating with primitives */
function filter(predicate, list) { function filter(list, predicate) {
return list.filter(predicate) return list.filter(predicate)
} }