373Re: [jslint] Re: "Use the array literal notation ."
- Jan 30, 2009Douglas Crockford wrote:
>I did a little experimenting and web-searching. I have found nothing
> --- In email@example.com <mailto:jslint_com%40yahoogroups.com>,
> James Clark <sbj@...> wrote:
> > Part of my project uses a statement like the following:
> > var b = new Array(a.length);
> > but jslint complains:
> > Use the array literal notation .
> If you can demonstrate a significant performance advantage, then I
> will relax the test. Stylistically, I think  is better, but I will
> bow to a compelling performance argument.
conclusive, but some quickly-thrown-together tests found no significant
difference in performance. So for now I will simply initialize the
array with .
- << Previous post in topic Next post in topic >>