Server/project/src/helpers/UtilityHelper.ts
2023-11-13 11:10:22 -05:00

11 lines
194 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));
}
}