Checks if the string is a valid hex-encoded representation of a MongoDB ObjectId. If given value is not a string, then it returns false.
The value being checked.
True if the string is a valid hex-encoded representation of a MongoDB ObjectId, false otherwise.
Generated using TypeDoc
Checks if the string is a valid hex-encoded representation of a MongoDB ObjectId. If given value is not a string, then it returns false.