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

16 lines
341 B
JavaScript

'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
function endsWith(str, target, position) {
if (str == null || target == null) {
return false;
}
if (position == null) {
position = str.length;
}
return str.endsWith(target, position);
}
exports.endsWith = endsWith;