cms/app-client/app/helpers/array-index.js
author ymh <ymh.work@gmail.com>
Tue, 08 Nov 2016 01:22:56 +0100
changeset 394 48458e099b05
parent 258 12c694392e8e
permissions -rw-r--r--
make dynamic filters for all route and do some code pruning and cleaning

import Ember from 'ember';

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

export default Ember.Helper.helper(arrayIndex);