Function endWith

  • @description: 字符串判断结尾 @author: wuxh @Date: 2021-11-10 11:35:30

    Parameters

    • str: string
    • endStr: string

    Returns boolean

    @example: endWith('1231231', '21') => false ; endWith('1231231', '31') => true