Skip to content

Ember.isEmpty({}) returns false #5543

@ultimatemonty

Description

@ultimatemonty

Currently Ember.isEmpty returns false if I pass in an empty object when I would expect it to return true. This feels like a gap in the functionality.

@taras suggested using Ember.keys({}).length === 0 and while this certainly works it doesn't feel intuitive when you have Ember.isEmpty available.

It's trivial to implement - I'd be glad to submit a PR if it's agreed that it is indeed a gap.

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