mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Add doc note to _.forEach about array-like objects. [closes #339] [ci skip]
This commit is contained in:
@@ -3434,6 +3434,10 @@
|
|||||||
* (value, index|key, collection). Callbacks may exit iteration early by
|
* (value, index|key, collection). Callbacks may exit iteration early by
|
||||||
* explicitly returning `false`.
|
* 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
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
* @alias each
|
* @alias each
|
||||||
|
|||||||
Reference in New Issue
Block a user