Function isObjectIdOrHexString

  • Returns true if the given value is a Mongoose ObjectId (using instanceof) or if the given value is a 24 character hex string, which is the most commonly used string representation of an ObjectId.

    Parameters

    Returns true

  • Parameters

    Returns boolean

  • Parameters

    • v: any

    Returns false

Generated using TypeDoc