35 lines
1.2 KiB
JavaScript
35 lines
1.2 KiB
JavaScript
/* Metro module 1180; source: unknown; dependencies: [] */
|
|
function _fun13115(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#13115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1307:6, offset: 0x00de1b40, size: 52 bytes, params: 8, frame: 15
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.PrimitiveToString = PrimitiveToString;
|
|
}
|
|
|
|
function PrimitiveToString(a0) { // fn#13116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1307:112, offset: 0x00de1b74, size: 131 bytes, params: 2, frame: 11
|
|
if (a0 === null) {
|
|
return '';
|
|
}
|
|
const value = typeof a0;
|
|
if (value === 'string') {
|
|
return a0;
|
|
}
|
|
if (value === 'boolean') {
|
|
return a0 == 1 ? 'True' : 'False';
|
|
}
|
|
if (value === 'number') {
|
|
return '' + a0;
|
|
}
|
|
if (value === 'bigint') {
|
|
return '' + a0;
|
|
}
|
|
if (value === 'undefined') {
|
|
return undefined;
|
|
}
|
|
if (value !== 'symbol') {
|
|
return a0;
|
|
}
|
|
return a0.toString();
|
|
}
|
|
|
|
global.__d(_fun13115, 1180, []) /* metro module 1180 */;
|