File Explorer

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

0 dirs
33 files
consume.js559 B · 33 lines
/* eslint no-constant-condition: 0 *//** * Obliterator Consume Function * ============================= * * Function consuming the given iterator for n or every steps. */ /** * Consume. * * @param  {Iterator} iterator - Target iterator. * @param  {number}   [steps]  - Optional steps. */module.exports = function consume(iterator, steps) {  var step,      l = arguments.length > 1 ? steps : Infinity,      i = 0;   while (true) {     if (i === l)      return;     step = iterator.next();     if (step.done)      return;     i++;  }};