set
Set
Stores objects in a set; each object is converted to a value via a [Symbol.keystr] method, and if that value already exists in the set then the object is not added.
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
freelist: *[] |
|
| public |
items: *[] |
|
| public |
keys: {} |
|
| public |
|
|
| public get |
size: * |
|
Method Summary
| Public Methods | ||
| public |
[Symbol.iterator](): * |
|
| public |
add(item: *) |
|
| public |
clear(): * |
|
| public |
copy(): * |
|
| public |
|
|
| public |
|
|
| public |
filter(f: *, thisvar: *): * |
|
| public |
forEach(func: *, thisvar: *) |
|
| public |
has(item: *): * |
|
| public |
map(f: *, thisvar: *): * |
|
| public |
reduce(f: *, initial: *): * |
|
| public |
remove(item: *, ignore_existence: *) |
|
Public Constructors
public constructor() source
Public Members
public freelist: *[] source
public items: *[] source
public keys: {} source
public get size: * source
Public Methods
public add(item: *) source
Params:
| Name | Type | Attribute | Description |
| item | * |
public delete(item: *, ignore_existence: boolean) source
Params:
| Name | Type | Attribute | Description |
| item | * | ||
| ignore_existence | boolean |
|
public filter(f: *, thisvar: *): * source
Params:
| Name | Type | Attribute | Description |
| f | * | ||
| thisvar | * |
Return:
| * |
public forEach(func: *, thisvar: *) source
Params:
| Name | Type | Attribute | Description |
| func | * | ||
| thisvar | * |
public reduce(f: *, initial: *): * source
Params:
| Name | Type | Attribute | Description |
| f | * | ||
| initial | * |
Return:
| * |
public remove(item: *, ignore_existence: *) source
Params:
| Name | Type | Attribute | Description |
| item | * | ||
| ignore_existence | * |
