cms/app-client/app/helpers/array-index.js
author Chloe Laisne <chloe.laisne@gmail.com>
Thu, 22 Sep 2016 15:34:10 +0200
changeset 278 f2c2c80a49f7
parent 258 12c694392e8e
permissions -rw-r--r--
Disable click on map areas w/o geoname + development/production disabled color + geostat endpoint

import Ember from 'ember';

export function arrayIndex(params/*, hash*/) {
  return params[0][params[1]];
}

export default Ember.Helper.helper(arrayIndex);