|| is known as OR operator. It checks whether any one of the two operands is non-zero (0, false, undefined, null or “” is considered as zero).
Logical OR operator
Falsy equality using ==
spread / rest operator
What are the 3 logical operators?
What does != Mean in JS?
not equal to
What does === mean?
1 x === y. The triple equals operator ( === ) returns true if both operands are of the same type and contain the same value. If comparing different types for equality, the result is false. This definition of equality is enough for most use cases.