==
and !=
JS-0050 793 ? pe(a[r], s[r])
794 : a[r] == p
795 ? -1
796 : s[r] == p 797 ? 1
798 : 0;
799 })),
793 ? pe(a[r], s[r])
794 : a[r] == p
795 ? -1
796 : s[r] == p 797 ? 1
798 : 0;
799 })),
793 ? pe(a[r], s[r])
794 : a[r] == p
795 ? -1
796 : s[r] == p 797 ? 1
798 : 0;
799 })),
793 ? pe(a[r], s[r])
794 : a[r] == p
795 ? -1
796 : s[r] == p 797 ? 1
798 : 0;
799 })),
10804 l.complete && l.complete.call(l.context, p, t);
10805 },
10806 }),
10807 (f = l.global) && 0 == q.active++ && q.event.trigger("ajaxStart"),10808 f && q.event.trigger("ajaxSend", [p, l]),
10809 l.beforeSend && !1 === l.beforeSend.call(l.context, p, l))
10810 )
It is considered good practice to use the type-safe equality operators ===
and !==
instead of their regular counterparts ==
and !=
.
The strict equality operators (===
and !==
) use the strict equality comparison algorithm to compare two operands.
false
.true
only if they refer to the same object.null
or both operands are undefined
, return true
.NaN
, return false
.+0
and -0
are considered to be the same value.true
or both false
.The most notable difference between this operator and the equality (==
) operator is that if the operands are of different types, the ==
operator attempts to convert them to the same type before comparing.
a == b
foo == true
bananas != 1
value == undefined
typeof foo == 'undefined'
'hello' != 'world'
0 == 0
true == true
foo == null
a === b
foo === true
bananas !== 1
value === undefined
typeof foo === 'undefined'
'hello' !== 'world'
0 === 0
true === true
foo === null