1// Arrow function
2filter((element) => { ... } )
3filter((element, index) => { ... } )
4filter((element, index, array) => { ... } )
5
6// Callback function
7filter(callbackFn)
8filter(callbackFn, thisArg)
9
10// Inline callback function
11filter(function callbackFn(element) { ... })
12filter(function callbackFn(element, index) { ... })
13filter(function callbackFn(element, index, array){ ... })
14filter(function callbackFn(element, index, array) { ... }, thisArg)
15