kriskowal/es5-shim — Issue #99: Fix Func.apply to work with generic array-like object instead of an array
Author: termi1uc1
Created: 2012-02-01 08:45:38+00:00
State: open

Can we fix that in IE < 9 ?

I fix it https://github.com/termi1uc1/es5-shim/blob/master/es5-shim.js#L198
But I am not sure, what my solution quite well. Can you check it out?

P.S. In my own lib I use `Array.from` instead of:

args = toObject(args);
var i = -1, arr = [], length = args.length >>> 0;

while (++i < length) {
if (i in args) {
arr.push(args[i])
}
}