dist/cytoscape.esm.js
function batchData(map) {
    var cy = this;
    return this.batch(function () {
      var ids = Object.keys(map);

      for (var i = 0; i < ids.length; i++) {
        var id = ids[i];
        var data = map[id];
        var ele = cy.getElementById(id);
        ele.data(data);
      }
    });
  }
function batchData(map) {
    var cy = this;
    return this.batch(function () {
      var ids = Object.keys(map);

      for (var i = 0; i < ids.length; i++) {
        var id = ids[i];
        var data = map[id];
        var ele = cy.getElementById(id);
        ele.data(data);
      }
    });
  }
function batchData ( map ) { var cy = this ; return this . batch ( function ( ) { var ids = Object . keys ( map ) ; for ( var i = 0 ; i < ids . length ; i ++ ) { var id = ids [ i ] ; var data = map [ id ] ; var ele = cy . getElementById ( id ) ; ele . data ( data ) ; } } ) ; }
for backwards compatibility
for backwards compatibility