File Explorer

/proc/thread-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 /.

map.js535 B · 28 lines
/** * Obliterator Map Function * =========================== * * Function returning a iterator mapping the given iterator's values. */var Iterator = require('./iterator.js'); /** * Map. * * @param  {function} mapper - Map function. * @param  {Iterator} target - Target iterator. * @return {Iterator} */module.exports = function map(mapper, target) {  return new Iterator(function next() {    var step = target.next();     if (step.done)      return step;     return {      value: mapper(step.value)    };  });};