filters.js 218 B

12345678910
  1. import _ from 'lodash';
  2. const filters = {
  3. getName(object) {
  4. const { data, searchItem } = object;
  5. return _.get(data, searchItem) === undefined ? '' : _.get(data, searchItem);
  6. },
  7. };
  8. export default filters;