2021-03-17 13:24:41 +00:00
|
|
|
import type { Compound, Value } from "./values";
|
2021-05-17 12:54:06 +00:00
|
|
|
import type { GenericEmbedded } from "./embedded";
|
2021-03-17 13:24:41 +00:00
|
|
|
import { Dictionary, Set } from "./dictionary";
|
|
|
|
|
2021-05-17 12:54:06 +00:00
|
|
|
export function isCompound<T = GenericEmbedded>(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));
|
|
|
|
}
|