function emitValue() {
    var arr = toArray();
    marker = arr[arr.length - 1];
    setTimeout(function() {
      emitter.emit('value', arr);
    }, 0);
  }
function emitValue() {
    var arr = toArray();
    marker = arr[arr.length - 1];
    setTimeout(function() {
      emitter.emit('value', arr);
    }, 0);
  }
function emitValue ( ) { var arr = toArray ( ) ; marker = arr [ arr . length - 1 ] ; setTimeout ( function ( ) { emitter . emit ( 'value' , arr ) ; } , 0 ) ; }
convert data and emit value event
convert data and emit value event