MCPcopy Index your code
hub / github.com/e2b-dev/fragments / isFileInArray

Function isFileInArray

lib/utils.ts:8–15  ·  view source on GitHub ↗
(file: File, existingFiles: File[])

Source from the content-addressed store, hash-verified

6}
7
8export function isFileInArray(file: File, existingFiles: File[]) {
9 return existingFiles.some(
10 (existing) =>
11 existing.name === file.name &&
12 existing.size === file.size &&
13 existing.type === file.type
14 )
15}

Callers 3

handleFileInputFunction · 0.90
handlePasteFunction · 0.90
handleDropFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected