The string to validate as an ObjectID
True if the string is a valid ObjectID, false otherwise
Valid ObjectIDs:
isValidObjectId('507f1f77bcf86cd799439011'); // true
isValidObjectId('507f1f77bcf86cd799439012'); // true
isValidObjectId('507f1f77bcf86cd799439013'); // true
Validates if a string is a valid MongoDB ObjectID
MongoDB ObjectIDs are 24-character hexadecimal strings that serve as unique identifiers for documents in collections. This function validates the format and structure of ObjectID strings.