Skip to content

Optimize typeof comparisions #613

Description

@ark120202

typeof foo === "string" -> type(foo) == "string" (we can directly transform it when we know that we don't need to change type)

typeof foo === "undefined" -> type(foo) == "nil" (instead of wrapping left-hand part we can just change right)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions