Added migration from tags to icons and vice versa

This commit is contained in:
Karsa
2022-05-30 17:52:11 +02:00
parent f623ac6362
commit 6ecf908ded
5 changed files with 103 additions and 3 deletions

View File

@@ -139,3 +139,14 @@ export const hasDuplicatedChildren = children => {
(key, index) => index === hashedKeys.findIndex(childKey => childKey === key),
);
};
/**
* @param {array} a
* @param {array} b
* @returns {array}
*/
export const mergeArrays = (a, b) => {
a = a.concat(b);
a = a.filter((i, p) => a.indexOf(i) === p);
return a;
};