Server/project/src/helpers/UtilityHelper.ts
2023-03-03 15:23:46 +00:00

10 lines
191 B
TypeScript

import { injectable } from "tsyringe";
@injectable()
export class UtilityHelper
{
public arrayIntersect<T>(a: T[], b: T[]): T[]
{
return a.filter(x => b.includes(x));
}
}