deno.land / x / froebel@v0.23.2 / suffix.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import 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;
froebel

Version Info

Tagged at
a year ago