Bug: options.forceString never works · Issue #263 · node-cache/node-cache · GitHub
Skip to content

Bug: options.forceString never works #263

Description

@oldbig

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions