Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Javascript function to check if obj is an array
function isArray( obj )
{
if ( Object.prototype.toString.call( 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