Condividi tramite


Array.parse Function

Creates an array from a string representation. This function is static and can be invoked without creating an instance of the object.

var a = Array.parse(value);

Arguments

  • value
    The string to convert to an array.

Return Value

The array that results from splitting the input string, or an empty array if value is not supplied.

Exceptions

Exception type

Condition

Error.argument Function

(Debug) value is formatted incorrectly.

Remarks

The parse function populates the current array by splitting the string in value. The string in value must be in the format "['item1', 'item2', 'item3']" and must include quotation marks.

See Also

Reference

Array Object

Array Type Extensions

Other Resources

Language Reference