Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Conversation

@disconnect3d
Copy link

The typeof operator returns a string, so a comparison of its result should always be performed against a string, not a constant like undefined.

In other words: typeof sth != undefined should be typeod sth != "undefined" (or even use !==, but I'll leave it as != in here).

The `typeof` operator returns a string, so a comparison of its result should always be performed against a string, not a constant like `undefined`.

In other words: `typeof sth != undefined` should be `typeod sth != "undefined"` (or even use !==, but I'll leave it as `!=` in here).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant