暗色模式
对象中是否拥有该 key
警告该方法只支持在单层对象判断
如需要基于路径字符串进行解析,请使用:hasByPath
import { hasByPath } from '@vill-v/path-prop'
import { has } from '@vill-v/vanilla' has({ text: '' }, 'text') //=>true
declare const has: (object: Record<string, any>, key: string) => boolean