• This TypeScript function returns the 'id' property of an object if it exists, otherwise it returns the 'name' property.

    Parameters

    • identity: IdentityOptions

      The parameter identity is of type IdentityOptions, which is an interface or type that defines two possible properties: id and name.

    Returns string

Generated using TypeDoc