Every time you chain . filter() and . map() on an array, JavaScript creates two new arrays.

Source: [Dev.to](https://dev.to/parsajiravand/array-methods-are-eager-iterator-helpers-are-lazy-heres-why-that-matters-58li)

Sponsored