Skip to main content
Stack Overflow
  1. About
  2. For Teams

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Draft saved
Draft discarded
Cancel
3
  • var index in arr means that index will take on the index on every value in arr. To get the value you need to dereference arr with index. i.e: arr[index] Commented Mar 31, 2013 at 16:29
  • read this answer: JavaScript "For ...in" with Arrays Commented Mar 31, 2013 at 16:32
  • 1
    "They are not the properties" Yes, they are properties. "1" in arr; // true Commented Mar 31, 2013 at 16:36

lang-js

AltStyle によって変換されたページ (->オリジナル) /