---
title: BluetoothRemoteGATTService.isPrimary
slug: Web/API/BluetoothRemoteGATTService/isPrimary
tags:
  - API
  - Bluetooth
  - BluetoothRemoteGATTService
  - Experimental
  - Property
  - Reference
  - Web Bluetooth API
  - isPrimary
browser-compat: api.BluetoothRemoteGATTService.isPrimary
---
{{SeeCompatTable}}

The **`BluetoothGATTService.isPrimary`** read-only property
returns a boolean value that indicates whether this is a primary service. If it
is not a primary service, it is a secondary service.

## Syntax

```js
var isPrimary = BluetoothGATTService.isPrimary
```

### Returns

A boolean value.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

{{APIRef("Web Bluetooth")}}
