title: Check if a JavaScript object is Map or Set (ECMAScript 2015)
body: <p>What are alternative / better ways to check if a JavaScript object is Map or Set than:</p>
  
  <pre><code>Object.getPrototypeOf(map) === Map.prototype
  Object.getPrototypeOf(set) === Set.prototype
  </code></pre>