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.
Syntax
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
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.