I am working with an array shown below:
var cString = [
['1','Techdirt','www.techdirt.com'],
['2','Slashdot','slashdot.org'],
['3','Wired','wired.com']
];
In order to expand this array, I want to add another entry in the same format:
var test = ['4','Stackoverflow','stackoverflow.com']
I attempted to combine them using:
var newArray = $.merge(cString, test);
However, when I did a console.log(newArray);
, it displayed:
[►Array,►Array,►Array,'4','Stackoverflow','stackoverflow.com']
This makes me think that I might be overlooking something basic. Can someone please help me figure out what's wrong?