Example 1. Return an array of all the values in ages[] that are 18 or over: const ages = [32, 33, 16, 40]; const result = ages.filter(checkAdult);
確定! 回上一頁