mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-24 04:49:23 +01:00
Added migration from tags to icons and vice versa
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user