Front end of the Slack clone application.

get-last.js 199B

123456789101112
  1. 'use strict';
  2. module.exports = function () {
  3. var value, iterator = this.values(), item;
  4. while (true) {
  5. item = iterator.next();
  6. if (item.done) break;
  7. value = item.value;
  8. }
  9. return value;
  10. };