My Shitty Code

Embracing the Messiness in Search of Epic Solutions

Tag: Underscore.js

  • Underscore.js: Introducing _.chain(…)

    PROBLEM Let’s assume we have the following JSON data:- What we want to do is to get all unique employees and ordered them by their names so that we get the following data:- SOLUTION 1: Less Elegant Underscore.js provides various functions that allow us to pull this off. While doable, the code is virtually not […]