In javascript isIs there a good(i mean built in)-in way that iI can find whether element ifvalue is a array ofor not ? one
One simple icheck I can seethink of is as follows, but iI don't like it:
if(ele.push){/ /* its array it has push method :)*/ }
I mean i would like know if something like pseudo-code below if exists. typeof made me upsettypeof doesn't seems to be applicable, as its returningit only returns "object" (though that makes sense).
function x(ele){ if(isArray(ele)){/ /* dosomething() */ } }