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

Function arrayIncludes

lib/interceptor/cache.js:45–53  ·  view source on GitHub ↗
(array, value)

Source from the content-addressed store, hash-verified

43}
44
45function arrayIncludes (array, value) {
46 for (let i = 0; i < array.length; i++) {
47 if (array[i] === value) {
48 return true
49 }
50 }
51
52 return false
53}
54
55function hasPragmaNoCache (headers) {
56 const pragma = headers?.pragma

Callers 1

cache.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected