Share via


Array or arguments object expected

You did not supply an array as an argument. This error applies to the Function.prototype.apply method only. If specified, the second argument to this function must be either an Array object or an Arguments object.

To correct this error

  • Specify either an Array or an Arguments object as the second argument.

See also

Using Arrays
apply Method (Function)
Functions