Fix getTypeName function

This commit is contained in:
Jim Cooper
2019-10-15 23:53:51 -06:00
parent 25207f2ddc
commit bba7387cef

View File

@@ -108,9 +108,7 @@ function displayObject(object, regexArray) {
} }
function getTypeName(object) { function getTypeName(object) {
var funcNameRegex = /function (.{1,})\(/; return object.constructor.name;
var results = funcNameRegex.exec(object.constructor.toString());
return results && results.length > 1 ? results[1] : '';
} }
let reloadJS = () => { let reloadJS = () => {