diff src/layout/rdf_value.ts @ 109:cbcd82d21356

cleanup
author drewp@bigasterisk.com
date Fri, 18 Mar 2022 12:00:33 -0700
parents 5e6840229a05
children 4b33a479dc2f
line wrap: on
line diff
--- a/src/layout/rdf_value.ts	Fri Mar 18 11:57:38 2022 -0700
+++ b/src/layout/rdf_value.ts	Fri Mar 18 12:00:33 2022 -0700
@@ -1,4 +1,4 @@
-import { Store, Term, NamedNode } from "n3";
+import { NamedNode, Store, Term } from "n3";
 import { RDFS } from "./namespaces";
 
 function _singleValue(g: Store, s: Term, p: Term): Term {
@@ -45,7 +45,9 @@
   return ret;
 }
 
-export function uniqueSortedTerms<T extends NamedNode | Term>(terms: Iterable<T>): T[] {
+export function uniqueSortedTerms<T extends NamedNode | Term>(
+  terms: Iterable<T>
+): T[] {
   const uniques: T[] = [];
   const seen = new Set();
   for (let o of terms) {
@@ -54,6 +56,8 @@
       uniques.push(o);
     }
   }
-  uniques.sort((a,b)=>{return a.id.localeCompare(b.id)});
+  uniques.sort((a, b) => {
+    return a.id.localeCompare(b.id);
+  });
   return uniques;
 }