CommonHas CallableCommonHas<T>(obj, key): key is TA Set.has/Map.has version annotated to return a type guard.Parametersobj: { has: (key) => boolean }The set or map in questionhas: (key) => booleankey: unknownThe key to search forReturns key is TWhether the object contains the passed key
A Set.has/Map.has version annotated to return a type guard.