Reputation: 1053
Can someone explain why inside Angular's DataPipe
there is this expression: value !== value
. In which case this does it make sense?
Upvotes: 1
Views: 238
Reputation: 180787
The only case in which (x !== x) is true is when x is NaN.
See Equality comparisons and sameness.
Upvotes: 3