ixfx
    Preparing search index...

    Options when creating a stack

    type StackOpts = {
        capacity?: number;
        debug?: boolean;
        discardPolicy?: StackDiscardPolicy;
    }
    Index

    Properties

    capacity?: number

    Capacity of the stack. If provided, the stack will be bounded to this capacity. Default is undefined, which means the stack is unbounded.

    debug?: boolean

    If true, the stack will log debug information to the console. Default is false.

    discardPolicy?: StackDiscardPolicy

    Policy to use when the stack is full and new items are added. Default is additions. See documentation for details.