MCPcopy Create free account
hub / github.com/nodejs/undici / arrayIncludes

Function arrayIncludes

lib/handler/cache-handler.js:40–48  ·  view source on GitHub ↗
(array, value)

Source from the content-addressed store, hash-verified

38}
39
40function arrayIncludes (array, value) {
41 for (let i = 0; i < array.length; i++) {
42 if (array[i] === value) {
43 return true
44 }
45 }
46
47 return false
48}
49
50function appendConnectionHeaderTokens (headersToRemove, connectionHeader) {
51 const values = Array.isArray(connectionHeader) ? connectionHeader : [connectionHeader]

Callers 2

onResponseStartMethod · 0.70
canCacheResponseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected