deno.land / x / froebel@v0.23.2 / suffix.ts
12345678910111213141516171819import type { StringCase, Suffix } from "./types.ts";import prefix from "./prefix.ts";
/** * Returns `str` suffixed with `suffix`. Same case and type behavior as * {@link prefix}. */const suffix = < T0 extends string, T1 extends string, C extends StringCase | void = void,>( str: T1, suffix: T0, caseMod?: C,): Suffix<T1, T0, C> => prefix(str, suffix, caseMod);
export default suffix;
Version Info