optimisation native Array.filter