Is it possible to access custom states and modify it using JS?

Still not sure about this @keith .
I saw your comment here 4 years ago : Access/modify custom states via JavaScript - #2 by keith
If there is something new we all will benefit from you .