I have the following object:
var arrayOfStuff= {};
arrayOfStuff.chapter = [];
for (var k = 0; k < array2.length; k++) {
arrayOfStuff.chapter.push({"title": array2[k][1], "page": array2[k][2]})
}
How can I get the ability to delete a record from the arrayOfStuff, without leaving a blank record behind? I've tried load of stuff, and not posting them here because I know they are wrong!
i.e. i have
NameA, 2
NameB, 7
NameC, 11
NameD, 15
NameE, 20
and I call something like arrayOfStuff.chapter[2].remove(); to get:
NameA, 2
NameB, 7
NameD, 15
NameE, 20
PS: On a side question, what's the correct name for this type of object? I would associate it as a multidimensional array of some sort.