Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Javascript function to check if obj is an array
function isArray( obj )
if ( obj ) === '[object Array]' ) return true;
return false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment