Refining code for sheet2table.carrd.co plugin, but got stuck, and more code I wrote the more confused I got

There's days when things flow effortlessly, the code you write is clean, everything works on first try...

But today was NOT one of those days.

The more code I write the more confused I got 😵😵😵

Here's to the ups and downs of indie hacking 🎢