Skip to content

Instantly share code, notes, and snippets.

@guilhermehn
Created August 6, 2013 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guilhermehn/6167114 to your computer and use it in GitHub Desktop.
Save guilhermehn/6167114 to your computer and use it in GitHub Desktop.
Array.isArray polyfill
(function(){ "use strict";
if( !Array.protoype.isArray) ){
Array.prototype.isArray = function( obj ){
return Object.prototype.toString.call( obj || this ) === "[object Array]";
};
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment