MCPcopy Create free account
hub / github.com/bywwcnll/StreamPanel / isConnectionLike

Function isConnectionLike

devtools/panel.bundle.js:2831–2836  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

2829 }
2830
2831 function isConnectionLike(data) {
2832 return data &&
2833 typeof data === 'object' &&
2834 typeof data.url === 'string' &&
2835 Array.isArray(data.messages);
2836 }
2837
2838 function normalizeConnection(connection, index) {
2839 if (!connection || typeof connection !== 'object' || !Array.isArray(connection.messages)) {

Callers 1

normalizeImportDataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected