---
category: [Administration & Integrations, Platform and Product Extensions, Platform and Product Extensions/Integration, Administration & Integrations/Custom Integrations & Apps, Platform and Product Extensions/Workday Extend]
keyword: [Extend, PMD Scripting, Scripts]
nav: wcp_docs
parent_url: /wcp_docs/
title: containsAll (elements)
layout: subsection
---

## <a id="section_m3p_myb_5db"></a>Description

Returns true if all elements in the specified collection exist in the set.

## <a id="section_cyq_j1m_zsb"></a>Return Type

`Boolean`

## <a id="section_dz5_pwg_5db"></a>Instance Method Syntax

```
thisSet.containsAll(elements)
```

<table><thead><tr><th>Parameter</th><th>Description</th></tr></thead><tbody><tr><td>elements</td><td>The object element to find.</td></tr></tbody></table><br/>

<b>Example</b>

`{1, 2, 3}.containsAll({2, 4})`

Returns `false`.

## <a id="section_njs_xzl_zsb"></a>Namespace Function Syntax

```
set:containsAll(set, elements)
```

<table><thead><tr><th>Parameter</th><th>Description</th></tr></thead><tbody><tr><td>set</td><td>The input Set.</td></tr><tr><td>elements</td><td>The collection of elements to find.</td></tr></tbody></table><br/>

