39 lines
914 B
JavaScript
39 lines
914 B
JavaScript
// Module ID: 14331
|
|
// Function ID: 14332
|
|
// Dependencies: [14323, 14322, 14330]
|
|
|
|
// Module 14331
|
|
import all from "all" /* 14323 */;
|
|
|
|
|
|
export default (arg0, arg1) => {
|
|
if ("string" === arg1) {
|
|
const toString = arg0.toString;
|
|
if (all(toString)) {
|
|
const tmp4 = tmp(14330)(toString, arg0);
|
|
if (!tmpResult(tmp4)) {
|
|
return tmp4;
|
|
}
|
|
tmpResult = tmp(14322);
|
|
}
|
|
}
|
|
const valueOf = arg0.valueOf;
|
|
if (all(valueOf)) {
|
|
let tmp5Result = tmp5(14322);
|
|
const tmp8 = tmp5(14330)(valueOf, arg0);
|
|
if (!tmp5Result(tmp8)) {
|
|
return tmp8;
|
|
}
|
|
}
|
|
if ("string" !== arg1) {
|
|
const toString2 = arg0.toString;
|
|
if (tmp5(14323)(toString2)) {
|
|
tmp5Result = tmp5(14322);
|
|
const tmp10 = tmp5(14330)(toString2, arg0);
|
|
if (!tmp5Result(tmp10)) {
|
|
return tmp10;
|
|
}
|
|
}
|
|
}
|
|
throw new TypeError("Can't convert object to primitive value");
|
|
};
|