I'm trying to create a split of several variables
var x = canales.split(',')
output: (2) ["especialista", "propio"]
but I've tried to add more data to that same split, and try to use:
globArr = []
var x = canales.split(',')
var y = regiones.split(',')
globArr.push(x)
globArr.push(y)
output:
["especialista", "propio"]
["sur", "centro", "occidente"]
It does not work for me because I want everything in a single array it should be like this:
["especialista", "propio","sur", "centro", "occidente"]
Does anyone know what I can do?