title: How do I map a Set of Objects in typescript
body: <p>First time trying typescript.</p>
  <p>I have an object that looks like</p>
  <pre><code>interface Job {
  //... some data
      priority: number
  }
  </code></pre>
  <p>and I want to return the highest priority from a Set of Jobs (note: not the Job itself, but the actual value). So naturally I just tried:</p>
  <pre><code>// let jobs: Set&lt;Job&gt; = fetchJobs();
  jobs.map((job) =&gt; job.priority).max()
  // or
  jobs.values().map((job) =&gt; job.priority).max()
  </code></pre>
  <p>But it tells me<code>Uncaught TypeError: jobs.map is not a function</code></p>