code: function (ds) {
              this.ds = {};
  
              if (ds) {
                  var nds = {},
                      i;
  
                  for (i in ds) {
                      if (ds.hasOwnProperty(i)) {
                          nds[i] = toData(ds[i]);
                      }
                  }
  
                  this.ds = nds;
              }
          }
docs: Solving big datasets var mySolver = Solver.Dataset({ x: [...], y: [...] }) // returns a dataset object .createSolver('y', 'linear') // returns a stream .on('data', function (sol) { // each object coming down the stream // will vary in properties based on // the type of algorithm chosen console.log("y = %sx + %s", sol.m, sol.b); });  // *later on* // oh look, a new set of data is available mySolver.write({ x: [...], y: [...] }); // console output: // y = <m>x + <b>