2020-06-23 00:09:42 +05:30
|
|
|
import { pickBy } from 'lodash';
|
|
|
|
import { SUPPORTED_FILTER_PARAMETERS } from './constants';
|
|
|
|
|
2020-10-24 23:57:45 +05:30
|
|
|
// eslint-disable-next-line import/prefer-default-export
|
2020-06-23 00:09:42 +05:30
|
|
|
export const validateParams = params => {
|
|
|
|
return pickBy(params, (val, key) => SUPPORTED_FILTER_PARAMETERS.includes(key) && val);
|
|
|
|
};
|