Lets imagine we have forEach
method. The core loop of this method in V8 is implemented in JavaScript and looks like this:
for (var i = 0; i < length; i++) {
if (i in array) {
var element = array[i];
%_CallFunction(receiver, element, i, array, f);
}