(error: object)
| 561 | * @since 4.0.0 |
| 562 | */ |
| 563 | export const getAttributes = (error: object): ReadonlyRecord<string, unknown> => { |
| 564 | return attributes in error ? error[attributes] as any : emptyAttributes |
| 565 | } |
| 566 | |
| 567 | const emptyAttributes: ReadonlyRecord<string, unknown> = {} |