Files
plaidware-wms-web/src/services/Utils.js
2022-01-13 22:28:45 +05:30

18 lines
288 B
JavaScript

import _ from 'underscore';
export const getErrorValue = (data, type) => {
try {
return _.omit(data, type);
} catch {
return data;
}
};
export const getFetchingValue = (data, type) => {
try {
return _.without(data, type);
} catch (error) {
return data;
}
};