Skip to content

Instantly share code, notes, and snippets.

/*!
* Extract a function's comment, useful to have multiline string
* @link https://gist.github.com/lavoiesl/5880516
*
* Don't forget to use /*! to avoid the comment being removed in minification
*/
// Example:
// var myString = function_to_string(function(){/*!
// <p>
// foo bar