Skip to content

Prefer === and !== #3

Description

@humphd

In JS it's always better to use === vs. ==, since the latter will introduce implicit type casting:

> '1' == 1
true

For example, see https://github.com/tcvan0707/txt2html/blob/main/src/txt2html.js#L35

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions