This TypeScript function returns the 'id' property of an object if it exists, otherwise it returns the 'name' property.
The parameter identity is of type IdentityOptions, which is an interface or type that defines two possible properties: id and name.
identity
IdentityOptions
id
name
Generated using TypeDoc
This TypeScript function returns the 'id' property of an object if it exists, otherwise it returns the 'name' property.