Skip to content

isImageFile

Checks if a given file is an image.

Import:

import { isImageFile } from '@mnaoumov/typescript-lib/blob';

Signature:

function isImageFile(file: File): boolean

Parameters:

Parameter Type Description
file File The file to check.

Returns: boolean — true if the file is an image, false otherwise.