mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-08 03:04:00 -05:00
5 lines
182 B
TypeScript
5 lines
182 B
TypeScript
// Performs a check if the items in `value` exist in `other`
|
|
export function isContained(value: string[], other: string[]): boolean {
|
|
return value.every(i => other.includes(i));
|
|
}
|