es-toolkit
Version:
A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.
16 lines (12 loc) • 340 B
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
function startsWith(str, target, position) {
if (str == null || target == null) {
return false;
}
if (position == null) {
position = 0;
}
return str.startsWith(target, position);
}
exports.startsWith = startsWith;