collectValidJsons(widgets, valid_jsons) {
        widgets.forEach(widget => {
            const widget_json = widget.getJSON();

            if (Object.keys(widget_json).length > 0) {
                valid_jsons.push(widget_json);
            }
        });
    }
/**
     * From the array of passed in widgets, get their json object, and if valid add it to the array of valid_jsons.
     *
     * @param {Widget[]} widgets An array of widgets, probably either this.reorderable_widgets or this.itempool_widgets.
     * @param {Object[]} valid_jsons An array which will be filled and data returned by reference.
     */
From the array of passed in widgets, get their json object, and if valid add it to the array of valid_jsons.
@param {Widget[]} widgets An array of widgets, probably either this.reorderable_widgets or this.itempool_widgets.
@param {Object[]} valid_jsons An array which will be filled and data returned by reference.
From the array of passed in widgets get their json object and if valid add it to the array of valid_jsons . @param { Widget [] } widgets An array of widgets probably either this . reorderable_widgets or this . itempool_widgets . @param { Object [] } valid_jsons An array which will be filled and data returned by reference .
collectValidJsons(widgets, valid_jsons) {
        widgets.forEach(widget => {
            const widget_json = widget.getJSON();
            if (Object.keys(widget_json).length > 0) {
                valid_jsons.push(widget_json);
            }
        });
    }
collectValidJsons ( widgets , valid_jsons ) { widgets . forEach ( widget => { const widget_json = widget . getJSON ( ) ; if ( Object . keys ( widget_json ) . length > 0 ) { valid_jsons . push ( widget_json ) ; } } ) ; }
From the array of passed in widgets, get their json object, and if valid add it to the array of valid_jsons.
From the array of passed in widgets get their json object and if valid add it to the array of valid_jsons .