Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. async function fn() {
  2. let split = (await fetch("").then(x => x.text())).split("-")
  3. return (await fetch("", {
  4. method: "POST",
  5. headers: { "content-type": "application/json" },
  6. 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)))), }),
  7. }).then(x => x.text()).then(x => (x.search("STMCTF") >= 0) ? alert(x) : x))
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement