packages/browser-sync-ui/lib/plugins/connections/lib/connections.js
function decorateClients(clients, clientsInfo) {
    return clients.map(function (item) {
        clientsInfo.forEach(function (client) {
            if (client.id === item.id) {
                item.data = client.data;
                return false;
            }
        });
        return item;
    });
}
function decorateClients(clients, clientsInfo) {
    return clients.map(function (item) {
        clientsInfo.forEach(function (client) {
            if (client.id === item.id) {
                item.data = client.data;
                return false;
            }
        });
        return item;
    });
}
function decorateClients ( clients , clientsInfo ) { return clients . map ( function ( item ) { clientsInfo . forEach ( function ( client ) { if ( client . id === item . id ) { item . data = client . data ; return false ; } } ) ; return item ; } ) ; }
Use heart-beated data to decorate clients
@param clients
@param clientsInfo
@returns {*}
Use heart - beated data to decorate clients