Skip to content

Instantly share code, notes, and snippets.

@triacontane
Created March 4, 2016 15:33
Show Gist options
  • Save triacontane/8bef1f70844792afddcb to your computer and use it in GitHub Desktop.
Save triacontane/8bef1f70844792afddcb to your computer and use it in GitHub Desktop.
クラス名取得
var getClassName = function(object) {
return object.constructor.toString().replace(/function\s+(.*)\s*\([\s\S]*/m, '$1');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment