//= require moment/moment
//= require jquery/dist/jquery
//= require jquery-ujs/src/rails
//= require lodash/dist/lodash
//= require handlebars.runtime
//= require knockoutjs/dist/knockout.debug
//= require_tree ./templates
//= require_tree ./staffplans
//= require_tree ./components

//= require_self

function hashParam(key) {
  _.reduce(window.location.hash.slice(1).split('&'), function(params, keyValue) {
    params[keyValue.split('=')[0]] = keyValue.split('=')[1];
    return params;
  }, {})[key]
}

//= require moment/moment
//= require jquery/dist/jquery
//= require jquery-ujs/src/rails
//= require lodash/dist/lodash
//= require handlebars.runtime
//= require knockoutjs/dist/knockout.debug
//= require_tree ./templates
//= require_tree ./staffplans
//= require_tree ./components

//= require_self

function hashParam(key) {
  return _.reduce(window.location.hash.slice(1).split('&'), function(params, keyValue) {
    params[keyValue.split('=')[0]] = keyValue.split('=')[1];
    return params;
  }, {})[key]
}

Fix bug, need to return the value explicitly. Oh JavaScript.
Fix bug, need to return the value explicitly. Oh JavaScript.