Returns the cells from the given array where the given filter function returns true.