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

    Function typeOfFunc

    Export assertion functions

    • Checks if the current value's type matches the expected type string. Uses the JavaScript typeof operator for type comparison.

      Valid type strings include:

      • "string"
      • "number"
      • "bigint"
      • "boolean"
      • "symbol"
      • "undefined"
      • "object" (includes null, arrays, and objects)
      • "null"
      • "array"
      • "function" (includes async, generator, and async generator functions)
      • "asyncfunction"
      • "generatorfunction"
      • "asyncgeneratorfunction"

      Type Parameters

      • R

      Parameters

      • this: IAssertScope

        The current IAssertScope object

      • type: string

        The expected type string (e.g., "string", "number", "function")

      • OptionalevalMsg: MsgSource

        The message to display if the value's type doesn't match

      Returns R

      The current IAssertScope.that (this) object

      0.1.5