function FillArray(theArray , theValue)
{
var arrayLength = theArray.length;
for(var I = 0 ; I < arrayLength; I++)
{
if ( !(theArray[I] instanceof Array) )
{//at the end on this array of array, so set the value and return
theArray[I] = theValue;
}
else
{//recurse through array of arrays
FillArray(theArray[I] , theValue);
}
}
}
JavaScript JS : Fill a multidimensional array of any size easily with a single value
Subpages:
Siblings:
- Agent (news reader) error : create fail for Window WinSockSession
- Bridgecommand Compile for the Raspberry Pi 3
- Chrome OS : An OS I have fallen in love with
- Chromecast – Not Recommended
- Crossword Algorithm / Crossword Generation Algorithm
- Fair coin toss
- Find the first letter of each word with a double letter in a text
- Internet Security
- JavaScript JS : Create a multidimensional array of any size easily : and assign a fill value
- JavaScript JS : Fill a multidimensional array of any size easily with a single value
- Javascript JS : Updating DOM in a long running blocking function
- Make HTML / Div objects follow a circle using Javascript
- Mastering the Computer
- mod_rewrite for apache
- My Favorite VPN Proxy Site
- Nas4Free Freenas Wireless Setup
- Password Security
- RecalBox boot from a USB on a Raspberry Pi 3
- Rename files based on Meta data : Date Taken
- Tethering a Nexus 4 to a PC with USB cable
- Video Editing Software
- Virtual Web Sites
- Web Page Basics
- Windows Basics
- WordPress is_admin
- X-Arcade and RetroPie