get-iterator-direct.js 215 B

123456789
  1. var aCallable = require('../internals/a-callable');
  2. var anObject = require('../internals/an-object');
  3. module.exports = function (obj) {
  4. return {
  5. iterator: obj,
  6. next: aCallable(anObject(obj).next)
  7. };
  8. };