2010
08.12

javascript array check

A lot of solutions of checking if javascript variable is an array. This one is working for me well across all used browsers.

function isArray(obj){ 
 return Object.prototype.toString.call(obj) === '[object Array]'; 
}

Comments are closed.

ENVATO FLASH STOCK ENVATO THEME FOREST

CBDB.cz - moje knihy