The options used to initialize an observable map.

interface IOptions<T> {
    itemCmp?: (first: T, second: T) => boolean;
    values?: Iterable<T>;
}

Type Parameters

  • T

Properties

Properties

itemCmp?: (first: T, second: T) => boolean

The item comparison function for change detection on set.

If not given, strict === equality will be used.

values?: Iterable<T>

An optional initial set of values.