Answers for "JavaScript Array Methods .filter()"

0

JavaScript Array Methods .filter()

const colours = ['green', 'black', 'dark-orange', 'light-yellow', 'azure'];
// a 6 karakternél hosszab színekre szűrünk:
const result = colours.filter(colour => colour.length > 6);
console.log(result);
// --> [ 'dark-orange', 'light-yellow' ]
Posted by: Guest on May-07-2021

Code answers related to "JavaScript Array Methods .filter()"

Code answers related to "Javascript"

Browse Popular Code Answers by Language