decord/source/__polyfill/01xxx/module_1543.js
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

27 lines
649 B
JavaScript

// Module ID: 1543
// Function ID: 1544
// Dependencies: []
// Module 1543
export default (str, str2) => {
if (typeof str === "string") {
if (typeof str2 === "string") {
if ("" === str2) {
const items = [str];
return items;
} else {
const index = str.indexOf(str2);
if (-1 === index) {
const items1 = [str];
let items2 = items1;
} else {
items2 = [str.slice(0, index), str.slice(index + str2.length)];
}
return items2;
}
}
}
const typeError = new TypeError("Expected the arguments to be of type `string`");
throw typeError;
};