import { isNumber, isString } from "@pisell/utils";
import { getValueByKeys } from "../../utils";
export default function (_ref) {
  var value = _ref.value,
    key = _ref.key,
    item = _ref.item;
  // 如果value为空，则不过滤
  if (!isString(value) && !isNumber(value)) {
    return true;
  }
  var dataValue = getValueByKeys(item, key);
  if (isString(dataValue) || isNumber(dataValue)) {
    return "".concat(dataValue).includes("".concat(value));
  }
  return true;
}