Keep all previously approved widget capabilities when requesting new capabilities (#7340)

This commit is contained in:
Dominik Henneke 2021-12-13 11:34:04 +01:00 committed by GitHub
parent 3b3776222b
commit 908e938996
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 4 deletions

View file

@ -14,7 +14,11 @@
* limitations under the License.
*/
import { arrayDiff, arrayUnion } from "./arrays";
import { arrayDiff, arrayMerge, arrayUnion } from "./arrays";
export function iterableMerge<T>(a: Iterable<T>, b: Iterable<T>): Iterable<T> {
return arrayMerge(Array.from(a), Array.from(b));
}
export function iterableUnion<T>(a: Iterable<T>, b: Iterable<T>): Iterable<T> {
return arrayUnion(Array.from(a), Array.from(b));