mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
Fix: getObjType
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
_('upperFirst');
|
||||
|
||||
function exports(obj)
|
||||
{
|
||||
if (obj.constructor && obj.constructor.name) return obj.constructor.name;
|
||||
|
||||
return util.upperFirst(({}).toString.call(obj).replace(/(\[object )|]/g, ''));
|
||||
}
|
||||
return upperFirst(({}).toString.call(obj).replace(/(\[object )|]/g, ''));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user