Comment

Comment by npodbielski

   const result = data
     |> Object.entries(%)
     |> (%.filter(([k, v]) => v != null))
     |> Object.fromEntries(%)
     |> Object.values(%)
     |> JSON.stringify(%)
     |> encodeURIComponent(%);
Looks kinda awful to me. Am I strange that I prefer the 'spaghetti' version?

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton