---
schema_version: "1"
id: 095a502bfc87cffa7a8148a41aed47560b5bef45a6d4f14434ffe2db372a55e5
title: someEntry
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.4/dw-objects-functions-someentry.md
canonical_url: https://docs.mulesoft.com/dataweave/2.4/dw-objects-functions-someentry
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 798b49dd9d5bbe5c4baed6e7e74fc045e7fcbef6af75e41719c87b3aa7b4b54e
description: MuleSoft Documentation Site
release: "2.4"
latest: false
---
---
product: DataWeave
version: 2.4
---

# 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._
