• Returns whether the target is or has the given prototype walking up the prototype chain.

    Parameters

    • target: unknown

      Any target to test.

    • Prototype: (new (...args: any[]) => any)

      Prototype function / class constructor to find.

        • new (...args): any
        • Parameters

          • Rest...args: any[]

          Returns any

    Returns boolean

    Target matches prototype.