Loading ...
Sorry, an error occurred while loading the content.

365Re: [jslint] Re: expected a conditional statement and instead saw an assignment

Expand Messages
  • Daniel Cassidy
    Jan 15, 2009
      2009/1/15 Daniel Cassidy <mail@...>:
      > As well as that, the two loops are *not* equivalent. The first loops
      > until it reaches *either* the end of the array or a falsy value (e.g.
      > false, zero, undefined, etc). The second always loops until the end of
      > the array.

      (granted in this specific case the DOM API guarantees the array will
      not contain any falsy values, but the same is not true for many other
      arrays).
    • Show all 10 messages in this topic