startsWith.d.ts 364 B

123456789101112131415
  1. /**
  2. * 判断字符串是否在源字符串的头部
  3. * @param str 字符串
  4. * @param val 值
  5. * @param startIndex 开始索引
  6. */
  7. export declare function startsWith(str: number | string | null, val: string, startIndex?: number): string;
  8. declare module './ctor' {
  9. interface XEUtilsMethods {
  10. startsWith: typeof startsWith;
  11. }
  12. }
  13. export default startsWith