title: Checking whether something is iterable
body: <p>In the MDN docs: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of" rel="noreferrer">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of</a></p>
  <p>The <code>for...of</code> construct is described to be able to iterate over &quot;iterable&quot; objects. But is there a good way of deciding whether an object is iterable?</p>
  <p>I've tried to find common properties for arrays, iterators and generators, but have been unable to do so.</p>
  <p>Aside from doing a <code>for ... of</code> in a try block and checking for type errors, is there a clean way of doing this?</p>