Created
May 26, 2016 01:06
-
-
Save tmcw/2d3d98963ed82f9e6e4281d02838a63e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function toComment(fn, file) { | |
return parse({ | |
file: file, | |
source: fn instanceof Function ? '(' + fn.toString() + ')' : fn | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment