Skip to content

ElectronClipboard.has method

ElectronClipboard › has

Unofficial

Returns whether the clipboard has the specified format.

Signature:

has(format: string, type?: 'clipboard' | 'selection'): boolean

Parameters:

ParameterTypeDescription
formatstringThe format to check.
type?'clipboard' | 'selection'The clipboard type.

Returns: boolean — Whether the format is available.