Skip to content

Commit a9309b4

Browse files
authored
Update Dumper.coffee
1 parent d3e1d7b commit a9309b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Dumper.coffee

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ class Dumper
2222
#
2323
dump: (input, inline = 0, indent = 0, exceptionOnInvalidType = false, objectEncoder = null) ->
2424
output = ''
25+
26+
if typeof(input) is 'function'
27+
return output
28+
2529
prefix = (if indent then Utils.strRepeat(' ', indent) else '')
2630

2731
if inline <= 0 or typeof(input) isnt 'object' or input instanceof Date or Utils.isEmpty(input)

0 commit comments

Comments
 (0)