Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

apply Method 

Returns a method of an object, substituting another object for the current object.


function apply([thisObj : Object [,argArray : { Array | arguments }]])

thisObj

Optional. The object to be used as the current object.

argArray

Optional. Array of arguments or an arguments object to be passed to the function.

If argArray is not a valid array or is not the arguments object, then a TypeError results.

If neither argArray nor thisObj are supplied, the global object is used as thisObj and is passed no arguments.

Other Resources

Methods

Community Additions

ADD
Show:
© 2015 Microsoft