@webdeveric/utils
    Preparing search index...

    Function comment

    • Wrap text in a comment of the given type.

      Parameters

      Returns string

      comment('Hello\nWorld'); // '/**\n * Hello\n * World\n */'