in javascript how to find element is array ?
Posted
by Anil Namde
on Stack Overflow
See other posts from Stack Overflow
or by Anil Namde
Published on 2010-05-21T16:15:31Z
Indexed on
2010/05/21
16:20 UTC
Read the original article
Hit count: 198
JavaScript
In javascript is there a good(i mean built in) way that i can find whether element if array of not ? one simple i can see is as follows but i don't like it
if(ele.push){//its array it has push method}
I mean i would like know if something like below exists
function x(ele){ if(isArray(ele)){//dosomething} }
© Stack Overflow or respective owner