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