Skip to content

Instantly share code, notes, and snippets.

@shedali
Last active March 5, 2019 23:51
Show Gist options
  • Save shedali/5551136 to your computer and use it in GitHub Desktop.
Save shedali/5551136 to your computer and use it in GitHub Desktop.
evaluate-whether-value-is-array
var typeIsArray;
typeIsArray = Array.isArray || function(value) {
return {}.toString.call(value) === '[object Array]';
};
typeIsArray([1,2,3]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment