MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / hasValidDetails

Function hasValidDetails

pkg/webui/lib/errors/utils.js:33–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 * @returns {boolean} `true` if `object` has a valid `details` prop, `false` otherwise.
32 */
33export 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.

Callers 8

isConnectionFailureErrorFunction · 0.85
getSentryErrorTitleFunction · 0.85
getBackendErrorNameFunction · 0.85
getCorrelationIdFunction · 0.85
toMessagePropsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected