Server/project/src/helpers/UtilityHelper.ts

11 lines
194 B
TypeScript
Raw Normal View History

2023-03-03 16:23:46 +01:00
import { injectable } from "tsyringe";
@injectable()
export class UtilityHelper
{
public arrayIntersect<T>(a: T[], b: T[]): T[]
{
2023-11-13 17:07:59 +01:00
return a.filter((x) => b.includes(x));
2023-03-03 16:23:46 +01:00
}
2023-11-13 17:07:59 +01:00
}