Skip to content
Commit 56d8dd43 authored by Caleb Raitto's avatar Caleb Raitto Committed by Chromium LUCI CQ
Browse files

== to ===, != to !==

These are preferred as they're more strict [0][1].

The exception is comparisons with null -- we sometimes want
== and != since they also match undefined.

[0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality

[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_inequality

Change-Id: I7a391faab107f02c2486cdd59ebb415c7613526d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5420989


Reviewed-by: default avatarmmenke <mmenke@chromium.org>
Commit-Queue: Caleb Raitto <caraitto@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1282132}
parent e3bfad06
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment