小于 1 分钟
Home > @hz-9/algorithm > SetPlus > isSubsetOf
SetPlus.isSubsetOf() method
Checks if SetB is a subset of SetA.
判断 SetB 是否为 SetA 的子集。
Signature:
static isSubsetOf<T>(setA: Set<T>, setB: Set<T>): boolean;Parameters
Parameter | Type | Description |
|---|---|---|
setA | Set<T> | The first set. |
setB | Set<T> | The second set. |
Returns:
boolean
The result of the subset check.