---
jsApi: true
title: "[F] isApplicableMetadataOrBody"

---
```ts
isApplicableMetadataOrBody(
  program,
  property,
  visibility,
  isMetadataCallback = isMetadata): boolean
```

Determines if the given property is metadata or marked `@body` and
applicable with the given visibility.

## Parameters

| Parameter | Type | Default value |
| :------ | :------ | :------ |
| `program` | `Program` | `undefined` |
| `property` | `ModelProperty` | `undefined` |
| `visibility` | [`Visibility`](Enumeration.Visibility.md) | `undefined` |
| `isMetadataCallback` | (`program`, `property`) => `boolean` | `isMetadata` |

## Returns

`boolean`
