diff options
Diffstat (limited to 'src/Dumper.coffee')
-rw-r--r-- | src/Dumper.coffee | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Dumper.coffee b/src/Dumper.coffee index 9462966..a6cec8e 100644 --- a/src/Dumper.coffee +++ b/src/Dumper.coffee @@ -22,6 +22,10 @@ class Dumper # dump: (input, inline = 0, indent = 0, exceptionOnInvalidType = false, objectEncoder = null) -> output = '' + + if typeof(input) is 'function' + return output + prefix = (if indent then Utils.strRepeat(' ', indent) else '') if inline <= 0 or typeof(input) isnt 'object' or input instanceof Date or Utils.isEmpty(input) |