2026-07-20 16:05:17 +00:00
|
|
|
// Module ID: 1498
|
2026-07-23 10:11:24 +00:00
|
|
|
// Function ID: 17278
|
2026-07-20 16:05:17 +00:00
|
|
|
// Dependencies: []
|
|
|
|
|
|
|
|
|
|
// Module 1498
|
|
|
|
|
|
|
|
|
|
export default (arr) => {
|
|
|
|
|
if ("string" === typeof arr) {
|
|
|
|
|
if ("string" === typeof arg1) {
|
|
|
|
|
if ("" === arg1) {
|
|
|
|
|
const items = [arr];
|
|
|
|
|
return items;
|
|
|
|
|
} else {
|
|
|
|
|
const index = arr.indexOf(arg1);
|
|
|
|
|
if (-1 === index) {
|
|
|
|
|
const items1 = [arr];
|
|
|
|
|
let items2 = items1;
|
|
|
|
|
} else {
|
|
|
|
|
items2 = [arr.slice(0, index), arr.slice(index + arg1.length)];
|
|
|
|
|
}
|
|
|
|
|
return items2;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const typeError = new TypeError("Expected the arguments to be of type `string`");
|
|
|
|
|
throw typeError;
|
|
|
|
|
};
|