over 3 years ago
function isBigEnough(element) {
  return element >= 10;
}
var filtered = [12, 5, 8, 130, 44].filter(isBigEnough);
// filtered is [12, 130, 44]
← Array.prototype.reduce() 累加器 Object.assign →
 
comments powered by Disqus