init commit,

This commit is contained in:
louiscklaw
2025-05-28 09:55:51 +08:00
commit efe70ceb69
8042 changed files with 951668 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
export const removeFirst = (src: any[], element: any) => {
const index = src.indexOf(element)
if (index === -1) return src
return [...src.slice(0, index), ...src.slice(index + 1)]
}