'use strict';


module.exports = function dent(array) {
  if (array === undefined) {
    return dent.tail.shift();
  }

  dent.array = array;
  dent.tail = array.slice();
  return dent();
};

'use strict';


module.exports = function dent(obj) {
  if (obj === undefined) {
    return dent.o[dent.idx++];
  }

  dent.o = obj;
  dent.idx = 0;
  return dent;
};

Make it uniformly work with any objects and (pseudo)arrays
Make it uniformly work with any objects and (pseudo)arrays
