Function prefix

  • Prefix an optional string.

    If prefix or s have no length then s is returned as-is. Otherwise the strings are concatenated.

    Parameters

    • Optional prefix: string

      the prefix to prepend to s

    • Optional s: string

      the string to append to prefix

    Returns string | undefined

    the prefixed string, or undefined if s is undefined

Generated using TypeDoc