I have a javascript array that is dynamically populated. Example: Array name $testarr[] And I have a database that fills it with numbers like this $testarr[id]=number. As my database is constantly growing I need to know when the array will hit the roof and refuse to take any more variables
I have a javascript array that is dynamically populated. Example: Array name $testarr[] And
Share
This is browser-specific, so you need to check with the browser documentation. There have actually been exploits that took advantage of this, as a large enough array would go beyond the maximum allowed to by the browser.
I believe your design is faulty, as if you need to hold this many variables in javascript, you should probably re-think your design.
EDIT: apparently there is a limit – 2^32 – 1 – but I believe you’ll reach the limit imposed by the browser before you get to 2^32 – 1 elements in the array.