cms/app-client/app/helpers/array-index.js
author ymh <ymh.work@gmail.com>
Thu, 03 Nov 2016 09:44:11 +0100
changeset 390 f4fed295115b
parent 258 12c694392e8e
permissions -rw-r--r--
put virtualenv activation during build in comment. That means that for the moment the build machine must be provisionned beforehand, or ansible must be available globally

import Ember from 'ember';

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

export default Ember.Helper.helper(arrayIndex);