isIDisposable Function

Deprecated  in 5.0 - will not be removed until after 2026-06-13. Use isDisposable instead.

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: 27 June, 2025