analysis/code-areas.js
function toCodeAreaChildren (set) {
  return Array.from(set, (id) => {
    return { id }
  }).sort(sorter)

  function sorter (a, b) {
    return a.id.localeCompare(b.id)
  }
}
function toCodeAreaChildren (set) {
  return Array.from(set, (id) => {
    return { id }
  }).sort(sorter)

  function sorter (a, b) {
    return a.id.localeCompare(b.id)
  }
}
function toCodeAreaChildren ( set ) { return Array . from ( set , ( id ) => { return { id } } ) . sort ( sorter ) function sorter ( a , b ) { return a . id . localeCompare ( b . id ) } }
Turn a Set of code area names into a sorted list of code area objects. This sorts by name right now, just to have a consistent output, but could use eg. the heat of the area in the future.
Turn a Set of code area names into a sorted list of code area objects . This sorts by name right now just to have a consistent output but could use eg . the heat of the area in the future .