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

NickFranceschina opened this Issue May 21, 2012 · 1 comment


None yet

2 participants


related... closed 5months ago

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 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