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

12 lines
241 B
JavaScript

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