I am trying to find out if there is a better way to do what I am doing here.
I built a customColumn object that has some properties like ID and Title, etc...
ie. my cusColum = new aColumn('321', 'Todds Column');
Then put all of those columns into an array - so this array holds objects and not simple values.
So I am doing this to find a particular object in my array:
var len = columnObjects.length;
for (var i = 0; i < len; i++) {
if (columnObjects[i].colID == id) {
columnObjects.splice(i, 1);
break;
}
The splice is just one thing I am doing with these objects... I would LOVE to be able to use the IndexOf function but dont know how I would write it or if it is even possible ...
length