Skip to content

truthy fn #11

@ecasilla

Description

@ecasilla

Im not sure if this is the correct implementation of the truthy function as 0 & ' ' are both falsey values in javascript which is confusing..

I think you should use the boolean operator to tell if the value is truthy

function truthy(x){ return !!x; }

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