first commit

This commit is contained in:
Beyhan Oğur
2026-04-26 21:52:23 +03:00
commit 880f412e2c
2662 changed files with 866266 additions and 0 deletions

15
ui/lib/utils/array.ts Normal file
View File

@@ -0,0 +1,15 @@
export const parseArrayFromText = (text?: string): string[] => {
if (!text) return [];
return text
.split(",")
.map((item) => item.trim())
.filter((item) => item.length > 0);
};
export const isArrayEqual = <T>(array1: T[], array2: T[]): boolean => {
return array1?.length === array2?.length && array1?.every((value, index) => value === array2[index]);
};
export const isArrayOverlapping = <T>(array1: T[], array2: T[]): boolean => {
return array1?.some((value) => array2.includes(value));
};