Server/project/src/helpers/UtilityHelper.ts

10 lines
191 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[]
{
return a.filter(x => b.includes(x));
}
}