convert string to array in vue js code example Example: convert string to array in vue js myString.split(","); // converts string with commas to array