cms/app-client/app/helpers/array-index.js
author ymh <ymh.work@gmail.com>
Wed, 18 Jan 2017 11:33:56 +0100
changeset 489 18613f052d56
parent 258 12c694392e8e
permissions -rw-r--r--
Documents must be sorted by title, correct bug #0025982

import Ember from 'ember';

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

export default Ember.Helper.helper(arrayIndex);