would like Em.empty({}) to return true #845

Closed
NickFranceschina opened this Issue May 21, 2012 · 1 comment

Projects

None yet

2 participants

@NickFranceschina

related... closed 5months ago
#293

I find myself always doing Em.keys(obj).length == 0 to see if an object is empty... but would love do Em.empty(obj) instead

what I'm asking for is actually the last item in his list of tests at the top... but it wasn't implemented in the pull request (instead checks for a "length" property)

@wagenet
Member
wagenet commented Oct 19, 2012

You can also use $.isEmptyObject.

@wagenet wagenet closed this Oct 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment