Blog

Reply to comment

ECMAScript Loops Cheatsheet

bryan's picture

Bryan Cribbs

Dec 17, 2009

Note to self:

  • for (var property:String in o:Object)
  • for each (var child:Object in o:Object)
  • for (var i:int in a:Array)
  • for each (var item:* in a:Array)

Reply

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.