function isSetisSet<T>(object: T | { }): object is T extends ReadonlySet<any> ? (unknown extends T ? never : ReadonlySet<any>) : Set<unknown>DeprecatedReturns true if the value is a built-in Set instance. util.types.isSet(new Set()); // Returns true Type ParametersTParametersobject: T | { }Return Typeobject is T extends ReadonlySet<any> ? (unknown extends T ? never : ReadonlySet<any>) : Set<unknown>