---
lang: en
title: 'API docs: metadata.propertydecoratorfactory.mergewithown'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.metadata.propertydecoratorfactory.mergewithown.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/metadata](./metadata.md) &gt; [PropertyDecoratorFactory](./metadata.propertydecoratorfactory.md) &gt; [mergeWithOwn](./metadata.propertydecoratorfactory.mergewithown.md)

## PropertyDecoratorFactory.mergeWithOwn() method

<b>Signature:</b>

```typescript
protected mergeWithOwn(ownMetadata: MetadataMap<T>, target: Object, propertyName?: string, descriptorOrParameterIndex?: TypedPropertyDescriptor<any> | number): MetadataMap<T>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  ownMetadata | <code>MetadataMap&lt;T&gt;</code> |  |
|  target | <code>Object</code> |  |
|  propertyName | <code>string</code> |  |
|  descriptorOrParameterIndex | <code>TypedPropertyDescriptor&lt;any&gt; &#124; number</code> |  |

<b>Returns:</b>

`MetadataMap<T>`


