I have an array of elements containing IP addresses with single quotes. I need to remove the single quotes and separate each IP address into new values, storing them as strings in another array using JavaScript.
let myArray = [ '10.202.10.800,10.202.10.801,10.202.10.802',
'10.202.10.803,10.202.10.804,10.202.10.805',
'10.202.10.806,10.202.10.807,10.202.10.808']
The desired output is a new array like this
newArray = [ '10.202.10.800','10.202.10.801','10.202.10.802',
'10.202.10.803','10.202.10.804','10.202.10.805',
'10.202.10.806','10.202.10.807','10.202.10.808']
I have attempted to use methods like parse and toString, but have been unable to achieve this result.