Front end of the Slack clone application.

is-implemented.js 820B

12345678910111213141516171819202122232425
  1. 'use strict';
  2. module.exports = function () {
  3. var set, iterator, result;
  4. if (typeof Set !== 'function') return false;
  5. set = new Set(['raz', 'dwa', 'trzy']);
  6. if (String(set) !== '[object Set]') return false;
  7. if (set.size !== 3) return false;
  8. if (typeof set.add !== 'function') return false;
  9. if (typeof set.clear !== 'function') return false;
  10. if (typeof set.delete !== 'function') return false;
  11. if (typeof set.entries !== 'function') return false;
  12. if (typeof set.forEach !== 'function') return false;
  13. if (typeof set.has !== 'function') return false;
  14. if (typeof set.keys !== 'function') return false;
  15. if (typeof set.values !== 'function') return false;
  16. iterator = set.values();
  17. result = iterator.next();
  18. if (result.done !== false) return false;
  19. if (result.value !== 'raz') return false;
  20. return true;
  21. };