Function endsWith

  • Example

    import * as S from "flurp/string";

    const endsWithSel = S.endsWith("sel");
    endsWithSel("weasel"); // true
    endsWithSel("_sel"); // false
    endsWithSel("el"); // false

    Parameters

    • str: string

    Returns ((s: string) => boolean)

      • (s: string): boolean
      • Parameters

        • s: string

        Returns boolean