ViewTransitionTypeSet
The ViewTransitionTypeSet interface of the View Transition API is a set-like object representing the types of an active view transition. This enables the types to be queried or modified on-the-fly during a transition.
Extends
Set<string>
Methods
[iterator]()
iterator: SetIterator<string>;
Iterates over values in the set.
Returns
SetIterator<string>
add()
add(value): this;
Appends a new element with a specified value to the end of the Set.
Parameters
| Parameter | Type |
|---|---|
value | string |
Returns
this
clear()
clear(): void;
Removes all elements from the Set.
Returns
void
delete()
delete(value): boolean;
Removes a specified value from the Set.
Parameters
| Parameter | Type |
|---|---|
value | string |
Returns
boolean
Returns true if an element in the Set existed and has been removed, or false if the element does not exist.
entries()
entries(): SetIterator<[string, string]>;
Returns an iterable of [v,v] pairs for every value v in the set.
Returns
SetIterator<[string, string]>
forEach()
forEach(callbackfn, thisArg?): void;
Parameters
| Parameter | Type |
|---|---|
callbackfn | (value, key, parent) => void |
thisArg? | any |
Returns
void
has()
has(value): boolean;
Parameters
| Parameter | Type |
|---|---|
value | string |
Returns
boolean
a boolean indicating whether an element with the specified value exists in the Set or not.
keys()
keys(): SetIterator<string>;
Despite its name, returns an iterable of the values in the set.
Returns
SetIterator<string>
values()
values(): SetIterator<string>;
Returns an iterable of values in the set.
Returns
SetIterator<string>
Properties
[toStringTag]
readonly [toStringTag]: string;
size
readonly size: number;
Returns
the number of (unique) elements in Set.