src/dag/equals.js
function toSet(arr) {
  const set = {};
  arr.forEach((e) => (set[e] = true));
  return set;
}
function toSet(arr) {
  const set = {};
  arr.forEach((e) => (set[e] = true));
  return set;
}
function toSet ( arr ) { const set = { } ; arr . forEach ( ( e ) => ( set [ e ] = true ) ) ; return set ; }
Compare two dag_like objects for equality
Compare two dag_like objects for equality