cms/app-client/app/helpers/array-index.js
author ymh <ymh.work@gmail.com>
Wed, 23 Nov 2016 11:29:37 +0100
changeset 441 65a6c640de7a
parent 258 12c694392e8e
permissions -rw-r--r--
correct absolute url creation in helper, again

import Ember from 'ember';

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

export default Ember.Helper.helper(arrayIndex);