Keep all previously approved widget capabilities when requesting new capabilities (#7340)
This commit is contained in:
parent
3b3776222b
commit
908e938996
3 changed files with 19 additions and 4 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue