Function startsWith

  • Example

    import * as S from "flurp/string";

    const startsWithWea = S.startsWith("wea");
    startsWithWea("weasel"); // true
    startsWithWea("_wea"); // false
    startsWithWea("we"); // false

    Parameters

    • str: string

    Returns ((s: string) => boolean)

      • (s: string): boolean
      • Parameters

        • s: string

        Returns boolean