Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
class FSFlagCollection
implements IFSFlagCollection
import { FSFlagCollection } from "https://deno.land/x/flagship_io_js_sdk@4.0.1/mod.ts";

Represents a collection of flags.

Constructors

new
FSFlagCollection(param: { visitor?: VisitorDelegate; flags?: Map<string, IFSFlag>; })

Creates a new instance of FSFlagCollection.

Properties

private
_flags: Map<string, IFSFlag>
private
_keys: Set<string>
private
optional
_visitor: VisitorDelegate
readonly
size: number

Methods

exposeAll(): Promise<void>
filter(predicate: (
value: IFSFlag,
key: string,
collection: IFSFlagCollection,
) => boolean
): IFSFlagCollection
forEach(callbackfn: (
value: IFSFlag,
key: string,
collection: IFSFlagCollection,
) => void
): void
get(key: string): IFSFlag
has(key: string): boolean
keys(): Set<string>
[Symbol.iterator](): Iterator<[string, IFSFlag]>