cms/app-client/app/helpers/array-index.js
author Chloe Laisne <chloe.laisne@gmail.com>
Sun, 02 Oct 2016 15:27:15 +0200
changeset 312 cd62bbf96322
parent 258 12c694392e8e
permissions -rw-r--r--
Add hover state to discourse bubbles

import Ember from 'ember';

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

export default Ember.Helper.helper(arrayIndex);