UNPKG

529 BTypeScriptView Raw
1/**
2 * 判断字符串是否在源字符串的头部
3 * @param str 字符串
4 * @param val 值
5 */
6export declare function endsWith(str: string, val: string): string;
7
8/**
9 * 判断字符串是否在源字符串的头部
10 * @param str 字符串
11 * @param val 值
12 * @param startIndex 开始索引
13 */
14export declare function endsWith(str: string, val: string, startIndex: number): string;
15
16declare module './ctor' {
17 interface XEUtilsMethods {
18 endsWith: typeof endsWith;
19 }
20}
21
22export default endsWith