import { helper } from 'ember-helper';
import { assert } from 'ember-metal/utils';

export default helper(function(params) {
  assert(`${this} expected first value to be an array, got ${typeof params[0]}`, Array.isArray(params[0]));
  return params[0].indexOf(params[1]) !== -1;
});
