/**
 * @license Copyright (c) 2017-2025, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md.
 */

/**
 * Checks if an element is focusable (has a valid focus method).
 *
 * @param element - Element to check
 * @returns True if the element is focusable
 */
export function isFocusable( element ) {
	return element?.focus && typeof element.focus === 'function';
}
