Toolbox-XToolbox-X
GuardsDOM Guards

Check File or Blob

Checks if a given value is an instance of File or Blob.

isFileOrBlob

Checks if a given value is an instance of File or Blob.

Function Signature

isFileOrBlob(value: unknown): value is File | Blob

Validation Rules

  • Must be File/Blob instance
  • Available in browser environments

Example

playground.ts

Last updated: Tue, May 26, 2026 04:14:18PM (UTC)

On this page