You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
matthew-holder-revvity
changed the title
isEmpty should probably usable as type-guard against null, undefined, and Record<PropertyKey, never>isEmpty should probably be usable as type-guard against null, undefined, and Record<PropertyKey, never>Aug 19, 2024
Since
isEmpty
checks for the nullish values, maybe it should return avalue is
predicate that identifies it as one of the nullish values or the empty object type (a la how it's defined in@types/lodash
). (see: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/common/lang.d.ts at line 574)The text was updated successfully, but these errors were encountered: