use isFinite in filter()

also covers NaN