Function notInstanceOf

  • check if value is an instance of a constructor

    Type Parameters

    • T extends Constructor<any>

    Parameters

    • value: InstanceType<T>
    • constructor: T

    Returns void

    instanceOf(new Error(), Error);