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

Function arrayIncludes

lib/util/cache.js:21–29  ·  view source on GitHub ↗
(array, value)

Source from the content-addressed store, hash-verified

19}
20
21function arrayIncludes (array, value) {
22 for (let i = 0; i < array.length; i++) {
23 if (array[i] === value) {
24 return true
25 }
26 }
27
28 return false
29}
30
31function trimOWSStart (value) {
32 return value.replace(/^[\t ]+/, '')

Callers 2

assertCacheMethodsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected