forked from extern/naming-cheatsheet
reverse arguments
This commit is contained in:
parent
582326c31d
commit
bd79998d01
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user