javascript - Is the third = necessary when comparing object types? -


Give me a good reason why I should not stop using the third level. type x === "object" type x == "object" // uses 100% of the same time and a lower character

In this specific situation, the only advantage of === is that it is slightly faster .

For the results of the results, see: (Specifically, "string + double equal" and "string + triple equivalent").

Comments