Files
discord-decomp/_bundle/max.js
T
2026-11-01 12:12:55 +02:00

51 lines
1.4 KiB
JavaScript

// Metro module 3440 (f3441).
import * as _toDate from "./toDate";
import { __esModule } from "./toDate";
import * as _requiredArgs from "./requiredArgs";
let c1798_0, c1798_1;
const _typeof2 = function _typeof(a0) {
_typeof2 = typeof globalThis.Symbol === "function" && typeof Symbol.iterator === "symbol" ? function _typeof(a0) {
return typeof a0;
} : function _typeof(a0) {
return a0 && typeof globalThis.Symbol === "function" && a0.constructor === Symbol ? a0 === Symbol.prototype ? typeof a0 : "symbol" : typeof a0;
};
return _typeof2(a0);
};
export default function max(a0) {
let r13;
L9: {
(0, c1798_1.default)(1, arguments);
if (a0) {
const forEach = a0.forEach;
r13 = a0;
if (typeof forEach === "function") {
break L9;
}
}
if (!(_typeof2(a0) === "object" && a0 !== null)) {
return new Date(NaN);
}
r13 = Array.prototype.slice.call(a0);
}
let c13417_0;
r13.forEach(function(item) {
const r9 = (0, c1798_0.default)(item);
const r5 = c13417_0;
if (r5 === void 0 || r5 < r9 || isNaN(Number(r9))) {
c13417_0 = r9;
}
});
return c13417_0 || new Date(NaN);
};
c1798_0 = _toDate ? __esModule ? _toDate : {
default: _toDate
} : {
default: _toDate
};
c1798_1 = _requiredArgs ? _requiredArgs.__esModule ? _requiredArgs : {
default: _requiredArgs
} : {
default: _requiredArgs
};
module.exports = exports.default;