Posted By

anobre on 12/13/09


Tagged

object


Versions (?)

Return properties of an Obj


 / Published in: JavaScript
 

prop(obj); //usually use "$(str).appendTo(''#ul")

  1. var prop = function (a) {
  2. var str = "";
  3. for (var i=0; i<a.length; i++) {
  4. str+= "<li>Obj Property: " + a[i] + "</li>\n";
  5. }
  6. return str;
  7. }

Report this snippet  

You need to login to post a comment.