cms/app-client/app/helpers/array-index.js
author ymh <ymh.work@gmail.com>
Mon, 03 Oct 2016 16:32:41 +0200
changeset 318 5564f5065f81
parent 258 12c694392e8e
permissions -rw-r--r--
add a root url for corpus back apis. it is set to the same than root api for the moment

import Ember from 'ember';

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

export default Ember.Helper.helper(arrayIndex);