This works fine in Firefox, Chrome, and (I assume) Node. IE, however, raises a TypeError: JScript object expected. It turns out that in IE, built-in Array methods care about the type of their receiver ...