JavaScript Function Test if Variable is Null, is an Array and Proper Array Length

JavaScript Function Test if Variable is Null, is an Array and Proper Array Length ALL at the Same Time

Home Short:

If [arr] is multidimensional then you can pass any depth or level of the array to the function. For example, for a regular, single dimension array that you want to test has 4 elements ...

If you have a 2 part array and you want to test the second level of the array ...

S
H
A
R
E