UNPKG

98 BJavaScriptView Raw
1export const endsWith = (str, suffix) =>
2 str.indexOf(suffix, str.length - suffix.length) !== -1