endsWith.d.ts 548 B

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