diff --git a/src/functional/$clone.ts b/src/functional/$clone.ts index 3c8812d1ba..e576ac2652 100644 --- a/src/functional/$clone.ts +++ b/src/functional/$clone.ts @@ -25,10 +25,10 @@ const $cloneMain = (value: any): any => { else if (value instanceof SharedArrayBuffer) return value.slice(0); else if (value instanceof DataView) return new DataView(value.buffer.slice(0)); - else if (value instanceof Blob) - return new Blob([value], { type: value.type }); else if (value instanceof File) return new File([value], value.name, { type: value.type }); + else if (value instanceof Blob) + return new Blob([value], { type: value.type }); else if (value instanceof Set) return new Set([...value].map($cloneMain)); else if (value instanceof Map) return new Map(