Skip to content

Instantly share code, notes, and snippets.

View endverbraucher's full-sized avatar
🏠
Working from home

Thomas Schrader endverbraucher

🏠
Working from home
View GitHub Profile
@endverbraucher
endverbraucher / filter.js
Last active December 21, 2017 18:48
JavaScript Programming Exercise
// 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.