import { helper } from 'ember-helper';

/*
  Simple helper for indexing into an array.
  See example usage in i18n-split-string.js
*/

export function atIndex([array, index]) {
  return array[index];
}

export default helper(atIndex);
