A Twitch.tv viewer reward and games system.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
503 B

  1. 'use strict';
  2. var Node = require('./node');
  3. /**
  4. * Initialize an `Each` node, representing iteration
  5. *
  6. * @param {String} obj
  7. * @param {String} val
  8. * @param {String} key
  9. * @param {Block} block
  10. * @api public
  11. */
  12. var Each = module.exports = function Each(obj, val, key, block) {
  13. this.obj = obj;
  14. this.val = val;
  15. this.key = key;
  16. this.block = block;
  17. };
  18. // Inherit from `Node`.
  19. Each.prototype = Object.create(Node.prototype);
  20. Each.prototype.constructor = Each;
  21. Each.prototype.type = 'Each';