Iterates over elements of the given object or array.
Numeric indexes are only used for instances of Array
. For all other objects, including those with a numeric length
property, the properties are iterated by name.
When fnCallback
returns false
, then the iteration stops (break).
Param | Type | Default Value | Description |
---|---|---|---|
oObject | object|any[] | object or array to enumerate the properties of | |
fnCallback | function | function to call for each property name |
Method | Description |
---|