| 31 | * @returns {boolean} `true` if `object` has a valid `details` prop, `false` otherwise. |
| 32 | */ |
| 33 | export const hasValidDetails = object => |
| 34 | 'details' in object && |
| 35 | object.details instanceof Array && |
| 36 | object.details.length !== 0 && |
| 37 | typeof object.details[0] === 'object' |
| 38 | |
| 39 | /** |
| 40 | * Tests whether the error is a backend error object. |
no outgoing calls
no test coverage detected