File Explorer

/proc/self/root/var/runtime/node_modules/@aws-sdk/node_modules/obliterator

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

chain.js666 B · 40 lines
/** * Obliterator Chain Function * =========================== * * Variadic function combining the given iterators. */var Iterator = require('./iterator.js'); /** * Chain. * * @param  {...Iterator} iterators - Target iterators. * @return {Iterator} */module.exports = function chain() {  var iterators = arguments,      current,      i = -1;   return new Iterator(function iterate() {    if (!current) {      i++;       if (i >= iterators.length)        return {done: true};       current = iterators[i];    }     var step = current.next();     if (step.done) {      current = null;      return iterate();    }     return step;  });};