Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Map and Filter methods used together

const list = ['Apple', 'Orange', 'Egg']
list.map(item => item[0]).filter(item => item === 'A') //'A'
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #Map #Filter #methods
ADD COMMENT
Topic
Name
9+9 =