Methods
Static
add
- add(item, prop, value): void
-
Parameters
-
item: any
-
prop: any
-
value: any
Returns void
Static
addType
- addType(item, type): void
-
Returns void
Static
asArray
- asArray(value): any[]
-
Returns any[]
Static
asArrayRef
- asArrayRef(value): any[]
-
Returns any[]
Static
clone
- clone<T>(data): T
-
Returns T
Static
countProp
- countProp(obj): number
-
Returns number
Static
exists
- exists(values, val): boolean
-
Returns boolean
Static
has
- has(item, prop, val): boolean
-
Parameters
-
item: any
-
prop: string
-
val: any
Returns boolean
Static
hasType
- hasType(item, type): boolean
-
Returns boolean
Static
isEqual
- isEqual(a, b, equalFn): any
-
Parameters
-
a: any
-
b: any
-
equalFn: any
Returns any
Static
isEqualRef
- isEqualRef(a, b): any
-
Returns any
Static
union
- union(...subgraphs): any[]
-
Returns any[]
Utility functions for JSON-LD