Skip to content

Commit

Permalink
Issue jashkenas#252 jashkenas#154 jashkenas#148 documenting numeric l…
Browse files Browse the repository at this point in the history
…ength key caveat
  • Loading branch information
jashkenas committed Aug 3, 2011
1 parent 9e8fc83 commit 75b2195
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,13 @@ <h2 id="duck_typing">Duck Typing</h2>
another type, if you're setting properties with names like "concat" and
"charCodeAt". So be aware.
</p>

<p>
In a similar fashion, <tt>_.each</tt> and all of the other functions
based on it are designed to be able to iterate over any Array-like
JavaScript object, including <tt>arguments</tt>, NodeLists, and more.
Passing hash-like objects with a numeric <tt>length</tt> key won't work.
</p>


<h2>Links &amp; Suggested Reading</h2>
Expand Down

0 comments on commit 75b2195

Please sign in to comment.