Array.valueOf

Returns the primitive value of an array.
Method of Array

Syntax

valueOf()

Parameters

None

Description

The Array object inherits the valueOf method of Object. The valueOf method of Array returns the primitive value of an array or the primitive value of its elements as follows:

Object type of element Data type of returned value
Boolean Boolean
Number or Date number
All others string

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

See also

Object.valueOf

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