"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.coerceNumber = void 0;
/**
 * Coerces a value to a number with optional default value.
 * @param val the value to coerce
 * @param def default value
 * @returns cocerced value
 */
function coerceNumber(val, def) {
    return val ?? def ?? 0;
}
exports.coerceNumber = coerceNumber;
//# sourceMappingURL=number.js.map