Returns the primitive value of the specified object.
SyntaxvalueOf()
Return Value
Returns the array instance.
ExamplesIn the following example, the instantiated array object is the same as the return value of this method.
var arr = [1, 2, 3, 4];
var s = arr.valueOf();
if (arr === s)
document.write("same");
else
document.write("different");
See also Specification
15.2.4.4 Object.prototype.valueOf ( ) ECMAScript® Language Specification Standard ECMA-262 5.1 Edition / June 2011
AttributionsMicrosoft Developer Network: Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4