isIDisposable Function

A type guard that checks whether the given argument implements IDisposable interface

isIDisposable(obj: unknown): obj is IDisposable

Parameter Type Description
obj unknown  

Returns - obj is IDisposable

Defined in

Last Updated: 12 June, 2024