$.each(null,function(){}) error or purposed?

$.each(null,function(){}) error or purposed?

$.each(null,function(){})

gives a javascript error - is this an intended functionality? Seems a bit redundant to check for nulls before calling each.

Works fine for $.each({},function(){}) and $.each([],function(){})

Just wondering