MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / isSupersetOf

Method isSupersetOf

src/lualib/Set.ts:232–239  ·  view source on GitHub ↗

* @returns a boolean indicating whether all the elements in the argument are also in this Set.

(other: ReadonlySet<unknown>)

Source from the content-addressed store, hash-verified

230 * @returns a boolean indicating whether all the elements in the argument are also in this Set.
231 */
232 public isSupersetOf(other: ReadonlySet<unknown>): boolean {
233 for (const item of other) {
234 if (!this.has(item as T)) {
235 return false;
236 }
237 }
238 return true;
239 }
240
241 /**
242 * @returns a boolean indicating whether this Set has no elements in common with the argument.

Callers

nothing calls this directly

Calls 1

hasMethod · 0.95

Tested by

no test coverage detected