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