var arr = [1, 2, 3, 4, 5, 6, 9, 10, 15]; var r = arr.filter(function(x) { return x % 2 !== 0; }); r; // [1,3,5,9,15]
去除了所以偶数