Function prepend

  • Example

    import * as S from "flurp/string";

    const prependWea = S.prepend("wea");
    prependWea("sel"); // "weasel"

    Parameters

    • str: string

    Returns ((s: string) => string)

      • (s: string): string
      • Parameters

        • s: string

        Returns string