import { getValueByKeys } from "../../utils/index.js";
import { isNumber, isString } from "@pisell/utils";
//#region src/components/table/Table/fields/number/filterUtil/index.ts
function filterUtil_default({ value, key, item }) {
	if (!isString(value) && !isNumber(value)) return true;
	const dataValue = getValueByKeys(item, key);
	if (isString(dataValue) || isNumber(dataValue)) return `${dataValue}`.includes(`${value}`);
	return true;
}
//#endregion
export { filterUtil_default as default };
