asNumOr method

num asNumOr (num defaultValue)

Asserts that value is a number and returns it.

If value doesn't exist, this returns defaultValue.

Implementation

num asNumOr(num defaultValue) => asNum;