I don’t think filter returns a new array, it just filter the elements on an existing array.
Tabish Gillani

Dear Tabish, thanks for reading the article and your response,

you can refer to w3schools page that says:

“filter() creates and array and does not change the original array.”
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.