CIA Compliance Manager API Documentation - v1.0.1
    Preparing search index...

    Function hasMethod

    • Type guard to check if an object has a specific method

      Type Parameters

      • T extends object
      • K extends PropertyKey

      Parameters

      • obj: T | null | undefined

        The object to check

      • methodName: K

        The method name to check for

      Returns obj is T & Record<K, (...args: unknown[]) => unknown>

      True if the object has the method as a function