src/output.js
function targetComplete(target) {
    let complete = true;
    Object.values(target).forEach((value) => {
        if (value > 0)
            complete = false;
    });
    return complete;
}
function targetComplete(target) {
    let complete = true;
    Object.values(target).forEach((value) => {
        if (value > 0)
            complete = false;
    });
    return complete;
}
function targetComplete ( target ) { let complete = true ; Object . values ( target ) . forEach ( ( value ) => { if ( value > 0 ) complete = false ; } ) ; return complete ; }
Helper function to check a target object if there are no more positive values.
@param {Object} targets
@returns {Boolean}
Helper function to check a target object if there are no more positive values .