Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

array filter

const words = ['spray', 'limit', 'elite', 'exuberant', 'destruction', 'present'];

const result = words.filter(word => word.length > 5)

console.log(result);
// expected output: Array ["exuberant", "destruction", "present"]

array filter
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #array #filter
ADD COMMENT
Topic
Name
1+8 =