Skip to content

Instantly share code, notes, and snippets.

@eduardo-matos
Last active December 25, 2015 16:39
Show Gist options
  • Select an option

  • Save eduardo-matos/7007504 to your computer and use it in GitHub Desktop.

Select an option

Save eduardo-matos/7007504 to your computer and use it in GitHub Desktop.
Is plain object
function isObj(obj) {
var globalObject = window.Object;
return globalObj.prototype.toString.call(obj) == '[object Object]' &&
obj.constructor === globalObject;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment