Thursday, March 1, 2018

Array.filter

A pretty good example of Array.filter is given here, namely:

var words = ['spray', 'limit', 'elite', 'exuberant', 'destruction', 'present'];
const result = words.filter(word => word.length > 6);
console.log(result);

No comments:

Post a Comment