Skip to content

helper.ts: ToObject returns null if o == 0 or o == "" #18

@mxmz

Description

@mxmz

The if condition on line 25 gets triggered when o is 0 or an empty string.
It should be replaced with something like o === undefined || o === null.

if (!o) return null;

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