summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/vue_shared/components/paginated_table_with_search_and_tabs/utils.js
blob: 7855c7ea6cbfcc12f69ff48a99ef28a591ef0ddc (plain)
1
2
3
4
5
6
7
8
9
10
11
import { __ } from '~/locale';

/**
 * Return a empty string when passed a value of 'Any'
 *
 * @param {String} value
 * @returns {String}
 */
export const isAny = (value) => {
  return value === __('Any') ? '' : value;
};