The spv.assert Namespace

spv.assert(b, message)

b {boolean}
message {string=}

.isBoolean(b)

Used for detection of some type errors when calling in from dynamically typed javascript.

b {boolean}

.isFunction(f)

Used for detection of some type errors when calling in from dynamically typed javascript.

f {Function}

.isNonEmptyString(s, name)

Used for detection of some type errors when calling in from dynamically typed javascript. Asserts that the string is not empty.

s {string}
name {string}

.isNumber(n)

Used for detection of some type errors when calling in from dynamically typed javascript.

n {number}

.isString(s, name)

Used for detection of some type errors when calling in from dynamically typed javascript.

s {string}
name {string}