#1130·es-toolkit

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

Author: joealdenCreated Apr 11, 2025Updated Jun 11, 2026
Labelsp2: type enhancement

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?