Options for HashArray.

type HashArrayOptions<T> = {
    ignoreDuplicates?: boolean;
    list?: T[];
}

Type Parameters

  • T
Index

Properties

ignoreDuplicates?: boolean

When true, any attempt to add items that collide with any items in the HashArray will be ignored.

list?: T[]

An external array that is used for the list backing this HashArray allowing any owner direct access to the list.