---
schema_version: "1"
id: 9222b8e02a6c2e7c6cf00dbd990a5ab20419aff5133f8bd4dc6e0ec461f2c0a7
title: Objects (dw::core::Objects)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.12/dw-objects.md
canonical_url: https://docs.mulesoft.com/dataweave/2.12/dw-objects
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 7a8acb2847601b9a10581cba0016ea07655f83bb121c703f95538dcb6a111d2d
description: MuleSoft Documentation Site
release: "2.12"
latest: false
---
---
product: DataWeave
version: 2.12
---

# Objects (dw::core::Objects)

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

This module contains helper functions for working with objects.

To use this module, you must import it to your DataWeave code, for example, by adding the line
`import * from dw::core::Objects` to the header of your DataWeave script.

## Functions

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.12/dw-objects-functions-divideby">divideBy</a></p></td><td><p>Breaks up an object into sub-objects that contain the specified number of key-value pairs.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.12/dw-objects-functions-entryset">entrySet</a></p></td><td><p>Returns an array of key-value pairs that describe the key, value, and any attributes in the input object.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.12/dw-objects-functions-everyentry">everyEntry</a></p></td><td><p>Returns <code>true</code> if every entry in the object matches the condition.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.12/dw-objects-functions-keyset">keySet</a></p></td><td><p>Returns an array of key names from an object.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.12/dw-objects-functions-mergewith">mergeWith</a></p></td><td><p>Appends any key-value pairs from a source object to a target object.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.12/dw-objects-functions-nameset">nameSet</a></p></td><td><p>Returns an array of keys from an object.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.12/dw-objects-functions-someentry">someEntry</a></p></td><td><p>Returns <code>true</code> if at least one entry in the object matches the specified condition.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.12/dw-objects-functions-takewhile">takeWhile</a></p></td><td><p>Selects key-value pairs from the object while the condition is met.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.12/dw-objects-functions-valueset">valueSet</a></p></td><td><p>Returns an array of the values from key-value pairs in an object.</p></td></tr></tbody></table>
