es-toolkit icon indicating copy to clipboard operation
es-toolkit copied to clipboard

Have `isPlainObject` assert to `unknown` instead of `any`

Open joealden opened this issue 6 months ago • 0 comments

Currently, isPlainObject asserts value is Record<PropertyKey, any>, but I think it would be safer to assert value is Record<PropertyKey, unknown> (like https://remedajs.com/docs/#isPlainObject) does?

joealden avatar Apr 11 '25 12:04 joealden