function filter(a, f) {
	for (var i = a.length; i--; f(a[i]) || a.splice(i, 1));
}

相关文章: