It looks like you're new here. If you want to get involved, click one of these buttons!
Instead use the longer form
Something which might not been known, but has been said long before: avoiding
val() is a good idea, too. Not because it will be deprecated (soon :shrug:), but simply because it is not needed oftentimes. If you now the type of the variable simply use the correct code to get the arrays element/objects property. Right now
val() is purged out of Vanilla from all the places where it is possible:
By the way: I don't know such things because someone tells me, I simply follow what's going on on the GitHub repo. If you want to stay up to date, I recommend watching the repo