This README file will describe the solution to find duplicate elements in an array of Clauses
objects
Get object hash as string, so it can be compared with other objects. I found this method more useful and accurate than comparing individual properties for this scenario
Test runner and assertion library to write unit tests
Contains methods to retrieve data, it acts as a repository.
Contains object definitions, namely Caluse
and ClauseItem
Contains services to process data. findDuplicates
located in clauses-service
I have added unit test for the service layer, namely clauses-service.spec.ts
After moving into solution directory run
npm run test
After moving into solution directory run
npm run start