将 `isPlainObject` 断言设置为 `unknown`,而不是 `any`
作者: joealden创建于 2025年4月11日更新于 2026年6月11日
标签p2: type enhancement
目前, `isPlainObject` 断言 `value 是 Record<PropertyKey, any>`,但我认为断言 `value 是 Record<PropertyKey, unknown>` (类似于 https://remedajs.com/docs/#isPlainObject) 会更安全?
内容来源: toss/es-toolkit