.. _Function: ================================================ Function ================================================ Description ----------- Wraps a built-in or JavaScript function. Properties ^^^^^^^^^^ +-----------------------------------------------+-----------------------------------------------+ | :ref:`arguments` readonly | The function arguments, packed into an array. | +-----------------------------------------------+-----------------------------------------------+ | :ref:`arity` readonly | The number of formal arguments. | +-----------------------------------------------+-----------------------------------------------+ | :ref:`length` readonly | The number of formal arguments. | +-----------------------------------------------+-----------------------------------------------+ | :ref:`name` readonly | The function name. | +-----------------------------------------------+-----------------------------------------------+ Constructors ^^^^^^^^^^^^ +---------------------------------------------+--+ | :ref:`Function` readonly | | +---------------------------------------------+--+ Methods ^^^^^^^ +---------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`apply` readonly | Apply a?this?object and an argument list to a function. | +---------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`call` readonly | Apply a?this?object and arguments to a function. | +---------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`toSource` readonly | Creates a string representation of this object that can be fed back to?eval()?to re-create an object. Works only with JavaScript functions. | +---------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`toString` readonly | Returns the function definition as a string. | +---------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ .. container:: hide .. toctree:: :hidden: :maxdepth: 1 Function/arguments.rst Function/length.rst Function/arity.rst Function/name.rst Function/apply.rst Function/call.rst Function/toSource.rst Function/toString.rst Function/Function.rst