Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

typeof operator on Array variable returns 'object'

Status
Not open for further replies.

predamarcel

IS-IT--Management
Jan 6, 2003
268
RO
I have a javascript function in which one of the parameters SHOULD BE Array, not other Object.

In case if it is not an array I shoud do a quick return,
but I can not figure how to make the difference between the Array type and other Object type.
That because typeof var_array is object

Any ideas ?


___
____
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top