Thomaz Capra
Thomaz Capra

Reputation: 1053

Angular Pipe: value !== value

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

Answers (1)

Robert Harvey
Robert Harvey

Reputation: 180787

The only case in which (x !== x) is true is when x is NaN.

See Equality comparisons and sameness.

Upvotes: 3

Related Questions