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

Function arrayIncludes

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

Source from the content-addressed store, hash-verified

34}
35
36function arrayIncludes (array, value) {
37 for (let i = 0; i < array.length; i++) {
38 if (array[i] === value) {
39 return true
40 }
41 }
42
43 return false
44}
45
46function hasPragmaNoCache (headers) {
47 const pragma = headers?.pragma

Callers 1

cache.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected