src/AppClass.js
// if an integer is empty, undefined or null, default it to 0
if an integer is empty, undefined or null, default it to 0
if an integer is empty undefined or null default it to 0
checkInteger(inputInteger) {
        let outputValue = inputInteger
        if (inputInteger === "") {
            outputValue = 0
        }
        if (inputInteger === undefined) {
            outputValue = 0
        }
        if (inputInteger == null) {
            outputValue = 0
        }
        return outputValue
    }
checkInteger ( inputInteger ) { let outputValue = inputInteger if ( inputInteger === "" ) { outputValue = 0 } if ( inputInteger === undefined ) { outputValue = 0 } if ( inputInteger == null ) { outputValue = 0 } return outputValue }
if an integer is empty, undefined or null, default it to 0
if an integer is empty undefined or null default it to 0