The valueOf() method returns the array.
The valueOf() method returns the array.
array.valueOf()
None |
---|
An Array. The valueOf() method returns itself
valueOf() is the default method of the array object.
myArray.valueOf() will return the same as myArray
var myArray = ["XML", "Json", "Database", "Mango"]; console.log( myArray.valueOf() );