• 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.

    Returns boolean

    Target matches prototype.