I have some simple code you can see in my fiddle. It alerts properly in all browsers and IE9, but not IE8 or 7.
var func = function( x ) {
var slice = [].slice,
args = slice.call( arguments ),
pass = args.splice(1);
alert( pass );
};
func( 'a', 1, 2 );
EDIT
Using the solution I posted what I used here:
http://jsfiddle.net/7kXxX/4/
I am using this in a case where I don’t know how many arguments are coming, which is why I’m using “arguments”
The ECMAScript 3rd edition standard requires the second
deleteCountargument:MSDN docs show that IE follows this standard:
Firefox’s SpiderMonkey allows the second argument to be optional (as do other modern browsers):
Description:
Sources: