Array.prototype.filter() - JavaScript | MDN
https://devdoc.net/web/developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter.html
WEBJul 28, 2017 · The filter() method creates a new array with all elements that pass the test implemented by the provided function. var words = ["spray", "limit", "elite", "exuberant", "destruction", "present"]; var longWords = words.filter(function(word){ return word.length > 6; }); // Filtered array longWords is ["exuberant", "destruction", "present"] Syntax.
DA: 52 PA: 30 MOZ Rank: 31