• Check if WebNN API is available in the current browser

    Returns boolean

    true if WebNN is supported, false otherwise

    Example

    if (isWebNNAvailable()) {
    console.log('WebNN is supported!');
    } else {
    console.log('WebNN not available, using fallback');
    }