More Array Methods

Reduce is one of the most important array methods. You can essentially replicate any other array method using reduce. I’m not saying you should, but you could.

[šŸŒ’, šŸŒ“, šŸŒ”].reduce((acc, šŸŒ‘)=> acc+šŸŒ‘) šŸŒ’šŸŒ“šŸŒ”
[šŸŒ’, šŸŒ“, šŸŒ”].reduceRight((acc, šŸŒ‘)=> acc+šŸŒ‘) šŸŒ”šŸŒ“šŸŒ’
Array.from("šŸŒ’šŸŒ“šŸŒ”") [šŸŒ’, šŸŒ“, šŸŒ”]
Array.isArray([šŸŒ‘, šŸŒ’]) true