Core JavaScriptExtendScript only
Object

Function

Wraps a built-in or JavaScript function.

Properties

NameType AccessDescription
Object read/write The function arguments, packed into an array.
Number readonly The number of formal arguments.
Number readonly The number of formal arguments.
String readonly The function name.

Methods

Function

The Function constructor parses the argument list and creates a Function object.

arguments String The list of formal arguments, separated by commas.
body String The body of the function to create.
→ Varies

Apply a this object and an argument list to a function.

thisObj Object The object to be used as this.
args Array An array of arguments.
→ Varies

Apply a this object and arguments to a function.

thisObj Object The object to be used as this.
argument Varies The first agument to the function. Add as many as needed.
String

Creates a string representation of this object that can be fed back to eval() to re-create an object. Works only with JavaScript functions.

String

Returns the function definition as a string.

Object of 1

Properties elsewhere that hold a Function.

Parameter of 2

Method parameters that accept a Function.

Return 1

Methods that return a Function.