Home Reference Source
import {FreezableSet} from 'bimsurfer3/viewer/freezableset.js'
public class | source

FreezableSet

The default ES6 Set() class is rather useless, as it doesn't do proper equality comparison, no use of keys in a Map(), etc.

This class is a wrapper around such a Set() but with a `frozen' getter to convert to String for equality testing.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public get

frozen: *

public
public get

size: *

Private Members
private
private

_set: *

private

_string: *

private

Method Summary

Public Methods
public
public

batch(fn: *): *

Private Methods
private

_build()

Public Constructors

public constructor() source

Public Members

public compareFunction: * source

public get frozen: * source

public nonce: number source

public get size: * source

Private Members

private _originalOrderSet: * source

private _set: * source

private _string: * source

private _update: boolean source

Public Methods

public * [Symbol.iterator]() source

public batch(fn: *): * source

Params:

NameTypeAttributeDescription
fn *

Return:

*

Private Methods

private _build() source