DebbieLeigh
Programmer
Hi,
Can anyone tell me how I can detect whether a variable is an array in javascript. I've found that typeof returns 'object' for an array, but doesn't go any farther than that.
So, does anyone know of a way to go beyond this and distinguish between arrays and other types of objects?
Debbie-Leigh
Can anyone tell me how I can detect whether a variable is an array in javascript. I've found that typeof returns 'object' for an array, but doesn't go any farther than that.
So, does anyone know of a way to go beyond this and distinguish between arrays and other types of objects?
Debbie-Leigh