MCPcopy Create free account
hub / github.com/angular/dev-infra / getResponseData

Function getResponseData

github-actions/browserstack/set-browserstack-env.js:10970–10982  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

10968 const entries = [];
10969 for (let index = 0; index < clone.length; index += 2) {
10970 entries.push([clone[index], clone[index + 1]]);
10971 }
10972 return Object.fromEntries(entries);
10973 }
10974 function matchHeaders(mockDispatch2, headers) {
10975 if (typeof mockDispatch2.headers === "function") {
10976 if (Array.isArray(headers)) {
10977 headers = buildHeadersFromArray(headers);
10978 }
10979 return mockDispatch2.headers(headers ? lowerCaseEntries(headers) : {});
10980 }
10981 if (typeof mockDispatch2.headers === "undefined") {
10982 return true;
10983 }
10984 if (typeof headers !== "object" || typeof mockDispatch2.headers !== "object") {
10985 return false;

Callers 2

handleReplyFunction · 0.70

Calls 2

stringifyMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected