nf(x, v) {
        if (!isFinite(x)) {
            return v !== undefined ? v : NaN
        }
        return x
    }
Replaces the var with NaN if Infinite
@param {*} x - The variable
@param {*} [v] - A value to replace with
@return {*} - New value