@nevware21/tripwire - v0.1.8
    Preparing search index...

    Function instanceOfFunc

    Export assertion functions

    • Checks if the current value is an instance of the specified constructor. Uses the JavaScript instanceof operator for type comparison.

      Type Parameters

      • R

      Parameters

      • this: IAssertScope

        The current IAssertScope object

      • constructor: Function

        The constructor function to check against (e.g., Array, Date, Error, custom class)

      • OptionalevalMsg: MsgSource

        The message to display if the value is not an instance of the constructor

      Returns R

      The current IAssertScope.that (this) object

      An AssertionFailure if the constructor is not a function or if the value is not an instance

      0.1.5