Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NumberValueSet

A set of numeric values represented internally as NumberValue objects. Equality is determined by the string representation of the number and not by the identity or data type of the provided value.

Hierarchy

Implements

Index

Constructors

constructor

Properties

__@toStringTag

__@toStringTag: "Set" = "Set"

Returns the string literal 'Set' for use by Object.prototype.toString. This allows for identifying Sets without checking constructor identity.

Protected _values

_values: Array<NumberValue> = []

Accessors

size

  • get size(): number

Methods

__@iterator

add

clear

  • clear(): void

delete

  • delete(value: NumberValue | number | string): boolean

entries

  • Returns an iterable two-member tuples for each item in the set, where the item is provided twice.

    Part of the ES2015 Set specification for compatibility with Map objects.

    Returns IterableIterator<[NumberValue, NumberValue]>

forEach

  • forEach(callback: function, thisArg?: any): void

has

keys

values