Concept Flow - Array filter function
Start with array
Pick first element
Apply filter function
Keep element
Move to next element
More elements?
No→Return filtered array
↩Back to Pick first element
The filter function checks each element with a test. If the test passes, it keeps the element; if not, it skips it. This repeats until all elements are checked.