cms/app-client/app/helpers/array-index.js
author ymh <ymh.work@gmail.com>
Wed, 19 Oct 2016 21:38:23 +0200
changeset 372 796ebdbf6a25
parent 258 12c694392e8e
permissions -rw-r--r--
Add filter for discourse types on documents list api end point

import Ember from 'ember';

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

export default Ember.Helper.helper(arrayIndex);