Move filter() function to nadasurf project

In nadasurf, the filter() function may be implemented on top of forEach(),
which is not allowed here (strict no-dependency policy).

Project nadasurf on GitHub:
https://github.com/eric-brechemier/nadasurf