cms/app-client/app/helpers/array-index.js
author ymh <ymh.work@gmail.com>
Sun, 09 Oct 2016 11:44:18 +0200
changeset 325 31a4987f6017
parent 258 12c694392e8e
permissions -rw-r--r--
Add fields to document index

import Ember from 'ember';

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

export default Ember.Helper.helper(arrayIndex);