Function.valueOf

Returns a string representing the source code of the function.

Method of Function

Syntax

valueOf()

Parameters

None

Description

The valueOf method returns the following values:

  • For the built-in Function object, valueOf returns the following string indicating that the source code is not available:
  • For custom functions, toSource returns the MetaScript source that defines the object as a string. The method is equivalent to the toString method of the function.

This method is usually called internally by MetaScript and not explicitly in code.

See also

Function.toString, Object.valueOf

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.