📅  最后修改于: 2022-03-11 15:02:30.590000             🧑  作者: Mango
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' ]