MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / isContained

Function isContained

client/src/utils/is-contained.ts:2–4  ·  view source on GitHub ↗
(value: string[], other: string[])

Source from the content-addressed store, hash-verified

1// Performs a check if the items in `value` exist in `other`
2export function isContained(value: string[], other: string[]): boolean {
3 return value.every(i => other.includes(i));
4}

Callers 2

getLayoutStateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected