16 lines
340 B
JavaScript
16 lines
340 B
JavaScript
'use strict';
|
|
|
|
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;
|