Function isDisposable

  • Checks if the given value is an instance of IDisposable. Returns true only if value is a non null object and has a method "dispose"

    Parameters

    • value: unknown

      The value to check.

    Returns value is IDisposable

    true if the value is an instance of IDisposable, false otherwise.

Generated using TypeDoc