Optional ReadonlycapacityCapacity of the stack. If provided, the stack will be bounded to this capacity. Default is undefined, which means the stack is unbounded.
Optional ReadonlydebugIf true, the stack will log debug information to the console. Default is false.
Optional ReadonlydiscardPolicy to use when the stack is full and new items are added. Default is additions. See documentation for details.
Options when creating a stack