When I get issues like this, the first thing I do is go to MDN and check what's the return value of the mehtod Im using is (or if there's any at all) :)
Yeah ... I should be thinking that route. I struggled with finding a good set of search terms to describe my issue. This method usually works extremely well for me.
I'll definitely keep your idea in mind for the next time I get bogged down like this!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.