jquery - Does $.each() execute for one item? -


will jquery method $.each() execute if there 1 item in array?

at least me, isn't.

yes will. example.

var 1 = [1];  $.each(one, function(index) {     alert(one[index]); }); 

will alert 1


Comments

Popular posts from this blog

smartface.io - Proper way to change color scheme for whole application -

javascript - three.js lot of meshes optimization -

Email notification in google apps script -