Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
interface IFSFlagCollection
implements Iterable<[string, IFSFlag]>
Re-export
import { type IFSFlagCollection } from "https://deno.land/x/flagship_io_js_sdk@4.0.1/index.ts";

Represents a collection of flags.

Properties

readonly
size: number

Gets the number of flags in the collection.

Methods

get(key: string): IFSFlag

Retrieves the flag associated with the specified key.

has(key: string): boolean

Checks if the collection contains a flag with the specified key.

keys(): Set<string>

Gets the keys of all flags in the collection.

[[Symbol.iterator]](): Iterator<[string, IFSFlag]>

Returns an iterator for the collection.

filter(predicate: (
value: IFSFlag,
key: string,
collection: IFSFlagCollection,
) => boolean
): IFSFlagCollection

Filters the collection based on a predicate function.

exposeAll(): Promise<void>

Exposes all flags in the collection.

getMetadata(): Map<string, IFSFlagMetadata>

Retrieves the metadata for all flags in the collection.

Serializes the metadata for all flags in the collection.

forEach(callbackfn: (
value: IFSFlag,
key: string,
collection: IFSFlagCollection,
) => void
): void

Iterates over each flag in the collection.