數組Array方法之filter()、map()、sort()、reduce()

filter()方法:過濾操做,篩選出符合條件的元素,返回組成的新數組。數組 語法:array.filter(function(currentValue,index,arr),thisValue)函數 const peoples = [ {name:'Yoona',age:26}, {name:'Jessica',age:27}, {name:'Tiffany',age:29}, {name:'K
相關文章
相關標籤/搜索