Value-Based Comparison Operators for Arrays of Primitives in JavaScript

We are extremely unlikely to add new syntax for this, and we definitely can't change the behavior of == without breaking everything.

But we might add a new function for doing element-wise comparison of arrays (there is an old proposal, though it hasn't had movement for a long time). This comes up fairly often; see e.g. this conversation or this thread.

4 Likes