text: import * as C from 'handsontable/i18n/constants';
  import { stringify } from 'handsontable/helpers/mixed';
  import { registerCondition } from './../conditionRegisterer';
  
  export const CONDITION_NAME = 'ends_with';
  
  export function condition(dataRow, [value]) {
    return stringify(dataRow.value).toLowerCase().endsWith(stringify(value));
  }
  
  registerCondition(CONDITION_NAME, condition, {
    name: C.FILTERS_CONDITIONS_ENDS_WITH,
    inputsCount: 1,
    showOperators: true
  });
  