EndoJS
    Preparing search index...

    Function assert

    Index

    Properties

    Methods

    Properties

    typeof: AssertTypeof

    Methods

    • Assert that a value is a primitive string. assert.string(v) is equivalent to assert.typeof(v, 'string'). We special case this one because it is the most frequently used.

      Parameters

      • specimen: any
      • Optionaldetails: Details

        The details of what was asserted

      Returns asserts specimen is string