Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

map and reduce an array in js

const rebels = pilots.filter(pilot => pilot.faction === "Rebels");const empire = pilots.filter(pilot => pilot.faction === "Empire");
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #map #reduce #array #js
ADD COMMENT
Topic
Name
1+6 =