partey_workadventure/pusher/src/Services/ArrayHelper.ts

4 lines
156 B
TypeScript
Raw Normal View History

2021-06-24 10:09:10 +02:00
export const arrayIntersect = (array1: string[], array2: string[]): boolean => {
return array1.filter((value) => array2.includes(value)).length > 0;
};