The assert.string method.
assert.string
assert.string(v) is equivalent to assert.typeof(v, 'string'). We special case this one because it is the most frequently used.
assert.string(v)
assert.typeof(v, 'string')
Assert an expected typeof result.
The value to get the typeof
Optional
The details to throw
Generated using TypeDoc
The
assert.string
method.assert.string(v)
is equivalent toassert.typeof(v, 'string')
. We special case this one because it is the most frequently used.Assert an expected typeof result.