index.js
function(id) {
        let instance;
        Object.keys(this.windows).forEach(key => {
            let window = this.windows[key];
            if(window.object.id === id){
                instance = window;
            }
        });
        return instance;
    }
function(id) {
        let instance;
        Object.keys(this.windows).forEach(key => {
            let window = this.windows[key];
            if(window.object.id === id){
                instance = window;
            }
        });
        return instance;
    }
function ( id ) { let instance ; Object . keys ( this . windows ) . forEach ( key => { let window = this . windows [ key ] ; if ( window . object . id === id ) { instance = window ; } } ) ; return instance ; }
Get a window instance, by BrowserWindow instance id
Get a window instance by BrowserWindow instance id