I have a string with with multiple length
and breadth
in the format length x breadth
separated by commas like
300x250, 720x220, 560x80
I will like to convert this into two separate arrays one containing only length and another only breadth.
Expected output
length = Array(300,720, 560)
breadth = Array(250, 220, 80)
Any novel way to achieve it?