{"action":"opened","issue":{"url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/issues/32","labels_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/issues/32/comments","events_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/issues/32/events","html_url":"https://github.com/IMA-WorldHealth/bhima-2.X/issues/32","id":128120695,"number":32,"title":"Use lodash on the server to write cleaner code","user":{"login":"jniles","id":896472,"avatar_url":"https://avatars.githubusercontent.com/u/896472?v=3","gravatar_id":"","url":"https://api.github.com/users/jniles","html_url":"https://github.com/jniles","followers_url":"https://api.github.com/users/jniles/followers","following_url":"https://api.github.com/users/jniles/following{/other_user}","gists_url":"https://api.github.com/users/jniles/gists{/gist_id}","starred_url":"https://api.github.com/users/jniles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jniles/subscriptions","organizations_url":"https://api.github.com/users/jniles/orgs","repos_url":"https://api.github.com/users/jniles/repos","events_url":"https://api.github.com/users/jniles/events{/privacy}","received_events_url":"https://api.github.com/users/jniles/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-22T09:53:34Z","updated_at":"2016-01-22T09:53:34Z","closed_at":null,"body":"A quite popular functional programming library is [lodash](https://lodash.com/).  We've run into a couple use cases where it would be very useful to have on the server.  Considering we are valuing testing, lodash is well-tested and would do well to replace out current `util` library functions.\r\n\r\nHere are a few applications:\r\n 1. Preprocessing arrays to insert into the database ([filtering](https://lodash.com/docs#compact) and [filling](https://lodash.com/docs#fill)).\r\n 2. Potentially replacing `dotjs` with lodash templates ([templating](https://lodash.com/docs#template))."}}