LendAndRegret/node_modules/es-toolkit/dist/compat/string/endsWith.mjs
2026-05-02 17:27:43 +08:00

12 lines
244 B
JavaScript

function endsWith(str, target, position) {
if (str == null || target == null) {
return false;
}
if (position == null) {
position = str.length;
}
return str.endsWith(target, position);
}
export { endsWith };