I have array like
let array = ["a,b,c"]
I want to convert It like this
let array = ["a","b","c"]
let array = ["a,b,c"]
console.log(array.join().split(","))
You can use Array.prototype.flatMap. It allows you to return arrays which fill be flattened.
let array = ["a,b,c"];
console.log(array.flatMap(item => item.split(",")));