Skip to content

Function: isHTMLAudioElement()

ts
function isHTMLAudioElement(value: unknown): value is HTMLAudioElement;

Type guard that checks if a value is an HTMLAudioElement. Safe to use in SSR environments.

Parameters

ParameterTypeDescription
valueunknownThe value to check

Returns

value is HTMLAudioElement

True if the value is an HTMLAudioElement