---
schema_version: "1"
id: e1cafcbf59bff8d06ac77dd2e8008b1097c148a2da4a93df0d8c9cf599eadf2c
title: someEntry
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/latest/dw-objects-functions-someentry.md
canonical_url: https://docs.mulesoft.com/dataweave/latest/dw-objects-functions-someentry
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 6457dd150c0130448df4211c4ac8076937d3900f73aeb1c48b4c555f32142186
description: MuleSoft Documentation Site
release: "2.13"
latest: true
---
---
product: DataWeave
version: 2.13
is-latest-version: true
---

# someEntry

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

## someEntry(obj: Object, condition: (value: Any, key: Key) -> Boolean): Boolean

Returns `true` if at least one entry in the object matches the specified condition.

The function stops iterating after the first element that matches the condition is found.

_Introduced in DataWeave version 2.3.0._

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>obj</code></p></td><td><p>The object to evaluate.</p></td></tr><tr><td><p><code>condition</code></p></td><td><p>The condition to use when evaluating elements in the object.</p></td></tr></tbody></table>

### Example

This example shows how the `someEntry` behaves with different inputs.

#### Source

```DataWeave
%dw 2.0
import someEntry from dw::core::Objects
output application/json
---
{
    a: {} someEntry (value, key) -> value is String,
    b: {a: "", b: "123"} someEntry (value, key) -> value is String,
    c: {a: "", b: 123} someEntry (value, key) -> value is String,
    d: {a: "", b: 123} someEntry (value, key) -> key as String == "a",
    e: {a: ""} someEntry (value, key) -> key as String == "b",
    f: null someEntry (value, key) -> key as String == "a"
}
```

#### Output

```Json
{
  "a": false,
  "b": true,
  "c": true,
  "d": true,
  "e": false,
  "f": false
}
```

## someEntry(obj: Null, condition: (value: Nothing, key: Nothing) -> Boolean): Boolean

Helper function that enables `someEntry` to work with a `null` value.

_Introduced in DataWeave version 2.3.0._
