UNPKG

@livekit/components-core

Version:

This package is a wrapper around the [livekit/client-sdk-js](https://github.com/livekit/client-sdk-js) package. It transforms the event based logic into simple to use observable state and component level APIs. This package is the core for all framework sp

8 lines (7 loc) 195 B
export function setDifference<T>(setA: Set<T>, setB: Set<T>): Set<T> { const _difference = new Set(setA); for (const elem of setB) { _difference.delete(elem); } return _difference; }