12 lines
350 B
JavaScript
12 lines
350 B
JavaScript
// Metro module 1522 (f1523).
|
|
module.exports = (a0, a1) => {
|
|
if (typeof a0 === "string" && typeof a1 === "string") {
|
|
if (a1 === "") {
|
|
return [a0];
|
|
}
|
|
const r5 = a0.indexOf(a1);
|
|
return r5 === -1 ? [a0] : [a0.slice(0, r5), a0.slice(r5 + a1.length)];
|
|
}
|
|
throw new TypeError("Expected the arguments to be of type `string`");
|
|
};
|