Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async function fn() {
- let split = (await fetch("").then(x => x.text())).split("-")
- return (await fetch("", {
- method: "POST",
- headers: { "content-type": "application/json" },
- body: JSON.stringify({ answer: JSON.parse(split[0].replace(/'/g, '"')).map(x => isNaN(parseInt(x)) ? x : parseInt(x)).sort((a, b) => ((typeof(a) === typeof(b)) ? ((a === b) ? 0 : ((a > b) ? +1 : -1)) : ((split[2].search("Number") > 0) ? ((typeof(a) === "number") ? -1 : +1) : ((typeof(a) === "string") ? -1 : +1)))), }),
- }).then(x => x.text()).then(x => (x.search("STMCTF") >= 0) ? alert(x) : x))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement