We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6de75a1 commit 34843b2Copy full SHA for 34843b2
lib/js/core.coffee
@@ -16,7 +16,7 @@ core.kindof = (that)->
16
return 'Null' if that is null
17
return 'Undefined' if that is undefined
18
ctor = that.constructor
19
- toName = (f)-> if 'name' in f then f.name else (''+f).replace(/^function\s+([^\(]*)[\S\s]+$/im, '$1')
+ toName = (f)-> if 'name' in f then f.name else (''+f).replace(/^function\s+([^\(]*)[\S\s]+$/im, '$1').trim()
20
if typeof(ctor) is 'function' then toName(ctor) else tc # [object HTMLDocumentConstructor]
21
22
core._normalize = (that)->
0 commit comments