DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+9 =
Submit