cms/app-client/app/helpers/array-index.js
author Chloe Laisne <chloe.laisne@gmail.com>
Sun, 02 Oct 2016 21:43:05 +0200
changeset 317 e653de66f252
parent 258 12c694392e8e
permissions -rw-r--r--
Remove document filtering in playlist
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
258
12c694392e8e Add topic to transcript
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     1
import Ember from 'ember';
12c694392e8e Add topic to transcript
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     2
12c694392e8e Add topic to transcript
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     3
export function arrayIndex(params/*, hash*/) {
12c694392e8e Add topic to transcript
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     4
  return params[0][params[1]];
12c694392e8e Add topic to transcript
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     5
}
12c694392e8e Add topic to transcript
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     6
12c694392e8e Add topic to transcript
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     7
export default Ember.Helper.helper(arrayIndex);