Add doc note to _.forEach about array-like objects. [closes #339] [ci skip]

This commit is contained in:
John-David Dalton
2013-10-14 23:48:24 -07:00
parent ffec2699ea
commit c56a09f318

View File

@@ -3434,6 +3434,10 @@
* (value, index|key, collection). Callbacks may exit iteration early by
* explicitly returning `false`.
*
* Note: As with other "Collections" methods, objects with a `length` property
* are iterated like arrays. To avoid this behavior `_.forIn` or `_.forOwn`
* may be used for object iteration.
*
* @static
* @memberOf _
* @alias each