Server/project/src/helpers/UtilityHelper.ts

11 lines
194 B
TypeScript
Raw Normal View History

2023-03-03 15:23:46 +00:00
import { injectable } from "tsyringe";
@injectable()
export class UtilityHelper
{
public arrayIntersect<T>(a: T[], b: T[]): T[]
{
2023-11-15 20:35:05 -05:00
return a.filter((x) => b.includes(x));
2023-03-03 15:23:46 +00:00
}
2023-11-15 20:35:05 -05:00
}