cms/app-client/app/helpers/array-index.js
author ymh <ymh.work@gmail.com>
Wed, 19 Oct 2016 13:08:02 +0200
changeset 369 796725d33b67
parent 258 12c694392e8e
permissions -rw-r--r--
Add location filter to documents api end-point

import Ember from 'ember';

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

export default Ember.Helper.helper(arrayIndex);