Apriori Algorithm implementation in TypeScript|JavaScript