Skip to content

Bug: options.forceString never works #263

@oldbig

Description

@oldbig

if @options.forceString and not typeof value is "string"

This code not typeof value is "string" will compile to the following js:
! typeof value === "string"
it is the same as (! typeof value) === "string". So, the express will always be false.
we need ! (typeof value === "string") or typeof value !== "string".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions