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

Function arrayIncludes

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

Source from the content-addressed store, hash-verified

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

Callers 2

assertCacheMethodsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected