tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

readable-stream-from-array.js (226B)


      1 'use strict';
      2 
      3 function readableStreamFromArray(array) {
      4  return new ReadableStream({
      5    start(controller) {
      6      for (let entry of array) {
      7        controller.enqueue(entry);
      8      }
      9      controller.close();
     10   }
     11  });
     12 }