SO , , . 100% - . , , Object (this) var O = this;. forEach : ECMAScript forEach. , , , .. , .
OP (), . , . :
Array.prototype.forEach.call("abc", func);
abc. (this) abc :
String {0: "a", 1: "b", 2: "c", length: 3, [[PrimitiveValue]]: "abc"}
, abc "abc". polyfill :
kValue = O[k];
"abc" . undefined IE < 8.
, :
" IE7. undefined IE7. , .charAt(pos), : , , /". ()
Object (this) .
, :
" forEach , , Array, . forEach - ." ()