Within a Javascript context, I am tackling an array of objects named users. Accessing users[1].name allows me to retrieve the user's name.
I am aiming to utilize the user ID as the index instead of relying on an incrementing counter. For instance, initializing the first user as users[45].
Yet, my efforts led me to discover that once accessing users[45], Javascript automatically converts it into a numerical array which results in users.length returning 46.
My question is whether there exists a method to coerce Javascript into treating the number as a string in this specific scenario. (Using " " does not yield the desired outcome)