Skip to content

Instantly share code, notes, and snippets.

@pstoev pstoev/isArray.js
Created Sep 26, 2016

Embed
What would you like to do?
if( Object.prototype.toString.call( someVar ) === '[object Array]' ) {
alert( 'Array!' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.