2021-03-17 13:24:41 +00:00
|
|
|
import type { Compound, Value } from "./values";
|
2021-04-24 20:01:16 +00:00
|
|
|
import type { GenericPointer } from "./pointer";
|
2021-03-17 13:24:41 +00:00
|
|
|
import { Dictionary, Set } from "./dictionary";
|
|
|
|
|
2021-04-24 20:01:16 +00:00
|
|
|
export function isCompound<T = GenericPointer>(x: Value<T>): x is Compound<T>
|
2021-03-17 13:24:41 +00:00
|
|
|
{
|
|
|
|
return (Array.isArray(x) || Set.isSet(x) || Dictionary.isDictionary(x));
|
|
|
|
}
|