di-shan-utils
Version:
JavaScript 函数库、工具类
16 lines (13 loc) • 364 B
TypeScript
/**
* 判断字符串是否在源字符串的头部
* @param str 字符串
* @param val 值
* @param startIndex 开始索引
*/
export declare function startsWith(str: number | string | null, val: string, startIndex?: number): string;
declare module './ctor' {
interface DIUtilsMethods {
startsWith: typeof startsWith;
}
}
export default startsWith