Wednesday, January 18, 2012

jQuery how I love you.

So I had a problem today where I needed to be able to tell if a JavaScript object was empty.  I spent 10 minuets  Googleing for a consice soluction then I went to jQuery util page on a whim and the answer was there.

With just one call the library will tell me if it has data.  Thanks to the people that build such cool tools for me to use.

1 comment:

Unknown said...

Don't forget it doesn't work with jQuery objects because if there is nothing it doesn't mean that jQuery object is empty ;)