Js数组filter过滤 示例 过滤数组中<6的数字 var arr = [1, 2, 4, 5, 6, 9, 10, 15]; list = arr.filter(item => item>=6) console.log(list)//--> 6、9、10、15