Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Excerpt |
---|
Convert an array-like object in to an array... |
Syntax
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
var actualArray = toArray(obj); |
Parameters
Parameter | Type | Mandatory | Description | API Version |
---|---|---|---|---|
obj | Variant | An array-like object, for example the ' | 1.0 |
Return value
Value | Type | Notes | API Version |
---|---|---|---|
<array> | Array | An array containing the numeric keys and their values from the "obj" passed in to toArray() | 1.0 |
<error> | Error | An error, most likely an invalid object was passed in to toArray(). | 1.0 |
Example
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
function foo() { arguments = toArray(arguments); var lastArg = arguments.pop(); } |
Div | ||||||
---|---|---|---|---|---|---|
| ||||||
Availability
Requires:
|
Div | ||||
---|---|---|---|---|
| ||||
ContentsJump to:
|
Div | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
GlobalsTopics:
|
Div | ||
---|---|---|
| ||
See alsoRelated articles:
|