Skip to content

Non-intuitive if(!'property' in object) #27

@DavidBruant

Description

@DavidBruant

!'property' in object is interpreted as (!'property') in object (=> false in object) which is not what people want the vast majority of the time.
Where writing this, people want to know if a property is not present in an object (!('property' in object))

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