I've got a long array of objects:
var myObj = {
a: "aaa",
b: "bbb",
c: "ccc",
d: "ddd",
...
}
I'd like to create a new object array that consists of every object except the first two:
var myObj2 = {
c: "ccc",
d: "ddd",
...
}
Obviously myObj.slice(2) doesn't work (as much as I'd like it to), and I can't select them all by name (myObj.c, myObj.d, etc) because there are more than 100 objects, and potentially more to be added.
What's the best way to select a range of objects in a object array?
sliceisn't working becausesliceis an array method, not an object method.