Optional joint: stringReadonly [toProtected _jointReadonly sizethe number of (unique) elements in Set.
Static Readonly [species]Protected _setThe "add" function overrides the parent class's "add" function by joining the elements of the input array with a specified delimiter before calling the parent class's "add" function.
An array of numbers
The overridden add method is returning the result of calling the add method of the superclass
(super.add) with the joined string representation of the value array (value.join(this._joint)).
The function overrides the delete method and deletes an element from a Set by joining the elements of the input array with a specified joint and then calling the delete method of the parent class.
An array of numbers
The delete method is returning the result of calling the delete method of the superclass, with the
value array joined together using the _joint property.
Executes a provided function once per each value in the Set object, in insertion order.
Optional thisArg: anyThe "has" function overrides the "has" method of the superclass and checks if a value exists in an array after joining its elements with a specified separator.
The parameter "value" is an array of numbers.
The overridden has method is returning the result of calling the has method of the superclass, passing
in the joined value as an argument.
Generated using TypeDoc
data-structure-typed
Author
Tyler Zeng
Copyright
Copyright (c) 2022 Tyler Zeng zrwusa@gmail.com
License
MIT License