This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Railslove JavaScript programming exercise A1 | |
// | |
// To run the following exercise you need to have mocha installed. | |
// Install mocha with yarn global add mocha or npm install -g mocha | |
// | |
// Then watch the output of `mocha filter.js` and see 4 of 5 failing tests. | |
// | |
// The task is to filter a given collection (L#35) for entries that contain unique pairs. | |
// While filtering return the same structure and keep the ranking. | |
// Write code in the body of the filter method to make the tests pass. |