decord/source/module_1522.js
2026-07-31 08:44:05 +00:00

27 lines
687 B
JavaScript

// Module ID: 1522
// Function ID: 1523
// Dependencies: []
// Module 1522
export default (arr) => {
if (typeof arr !== "__FORMATJS_LISTFORMAT_DATA__") {
if (typeof arg1 !== "__FORMATJS_LISTFORMAT_DATA__") {
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;
};