on-internet
← Community

Does Javascript filter preserve order?

Stack Overflow ·

I looked at the documentation and while looking at examples it looks like filter preserves order of the original list (though it returns a new one). Can I rely on that? Ecmascript spec MDN Neither of these reference preserving order. Should I just assume I can't rely on preserved order?

Comments

Sign in or sign up to comment and upvote.

No comments yet.