For each method for both arrays and objects. In case of an array, the built-in Array.forEach() is applied (No, it's not!). In case of an Object, the method loops over all properties of the object.
An Object or Array to be iterated over.
Array.forEach-like callback.
For each method for both arrays and objects. In case of an array, the built-in Array.forEach() is applied (No, it's not!). In case of an Object, the method loops over all properties of the object.
Param: object
An Object or Array to be iterated over.
Param: callback
Array.forEach-like callback.