I use an array to store a number of other arrays and split each stored array by adding "fin" at the end.
What really throws me is; when I show what javascript considers to be the length of this array, it says that the array has 603 elements, whereas in reality the array contains approximately 90 elements .: - (
Code as requested: -
// Declare the array var arrForAllData = new Array(); // Concatenate all the arrays to build the 'arrForAllData' array arrForAllData = arrApplicationData + ",fin," + arrCmdbIds + ",fin," + arrBaAvail + ",fin," + arrAppStatus + ",fin," + arrMaxAchieve + ",fin," + arrBreaches + ",fin," + arrMTTR + ",fin," + arrMTBF + ",fin," + arrMTBSI + ",fin," + arrCleanDays + ",fin," + arrHistBaAvail + ",fin," + arrHistBreaches + ",fin," + arrHistDuration;
I use fin as a separator for each array, since I need to rebuild the arrays later in order to save the need to make API calls to recreate most of the data.
This warning displays all the elements in the array, as I expect it, all separated by commas.
This warning displays "adlen" as 603, which, as I said below, is a count of all individual characters.
For some reason, "array.length" counts every single character.
Has anyone come across this before, and if so, is there any way to fix it?
Thanks in advance for your time.