I know we have a couple of options on the Apex side, but I would like to do that verification without calling the server, is there another option direct on the LWC side?
FYI: I used to use the Id class valueOf(toID) and verify if the return is not an exception.