Software Development, Software Engineering, Software Testing, Test Automation, Programming.
(targetPractice.categories.length) { return targetPractice.categories.every(c => sourcePractice1.categories.includes(c) || sourcePractice2.categories.includes(c)); } return true; } And here is the test with fast-check : describe('Merge two practices', function() { it('should merge categories of the