checkNulls(fields) {
        if(fields.length == this.nullObject.length) {
            this.nullObject = this.nullObject.map((nobj,index)=>{
                if (fields[index].value == null || (this.considerEmpty && fields[index].value == "")) {
                    return {nullCount: {null: nobj.nullCount.null + 1, nonNull: nobj.nullCount.nonNull}};
                } else {
                    return {nullCount: {null: nobj.nullCount.null, nonNull: nobj.nullCount.nonNull  + 1}};
                }
            });
        } else {
            console.error("NullMetrics: checked object does not have the same length as initialized Metrics, ignoring");
        }
    }
/**
     * public method that should be called when you are "adding" new line of data (new data element)
     * @param fields object
     */
public method that should be called when you are "adding" new line of data (new data element)
@param fields object
public method that should be called when you are " adding " new line of data ( new data element ) @param fields object
checkNulls(fields) {
        if(fields.length == this.nullObject.length) {
            this.nullObject = this.nullObject.map((nobj,index)=>{
                if (fields[index].value == null || (this.considerEmpty && fields[index].value == "")) {
                    return {nullCount: {null: nobj.nullCount.null + 1, nonNull: nobj.nullCount.nonNull}};
                } else {
                    return {nullCount: {null: nobj.nullCount.null, nonNull: nobj.nullCount.nonNull  + 1}};
                }
            });
        } else {
            console.error("NullMetrics: checked object does not have the same length as initialized Metrics, ignoring");
        }
    }
checkNulls ( fields ) { if ( fields . length == this . nullObject . length ) { this . nullObject = this . nullObject . map ( ( nobj , index ) => { if ( fields [ index ] . value == null || ( this . considerEmpty && fields [ index ] . value == "" ) ) { return { nullCount : { null : nobj . nullCount . null + 1 , nonNull : nobj . nullCount . nonNull } } ; } else { return { nullCount : { null : nobj . nullCount . null , nonNull : nobj . nullCount . nonNull + 1 } } ; } } ) ; } else { console . error ( "NullMetrics: checked object does not have the same length as initialized Metrics, ignoring" ) ; } }
public method that should be called when you are "adding" new line of data (new data element)
 @param fields object
public method that should be called when you are " adding " new line of data ( new data element ) @param fields object