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 |