🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #190

Re: Using for ... in with arrays

#190
From: Dave_Saunders
Date: Tue, 31 Mar 2009 15:51
13 lines
933 bytes
Fred,

Right. It was that realization that had it making sense for me, once I'd thought it through.

I wonder which is quicker:

for (var j in myArray)

for (var j = 0; myArray.length > j; j++)

I appreciate that these aren't necessarily equivalent, but every time I use the latter, I surely could have used the former.

Dave
Technical Details
Message-ID: <59b87616.1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing
References: <59b87616.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,709551d954315a95
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dave_Saunders@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Using for ... in with arrays
Message-ID: <59b87616.1@webcrossing.la2eafNXanI>
Date: Tue, 31 Mar 2009 08:51:22 -0700
References: <59b87616.-1@webcrossing.la2eafNXanI>
Lines: 15
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit