diff --git a/src/collections.ts b/src/collections.ts index 1ccbbd5..e516a14 100644 --- a/src/collections.ts +++ b/src/collections.ts @@ -177,6 +177,10 @@ export class ObjectChain { export class Chain { constructor(private val: ReadonlyArray) {} + asSet(): Set { + return new Set(this.val) + } + writableValue(): Array { return [...this.val] }