While reviewing the Vue.js source code, I came across a contentious if
statement. This part defines a reactive setter for a property.
if (newVal === value || (newVal !== newVal && value !== value)) {
return
}
I have consulted this strict equality description but still struggle to grasp the usefulness of such a comparison.
(newVal !== newVal && value !== value)