---
schema_version: "1"
id: 8dbad4b9f9e443245dcfae750bc3eb9b850cd2e06025f564233c86e35942ae9c
title: someEntry
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.7/dw-objects-functions-someentry.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.7/dw-objects-functions-someentry
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 84a5c5eda7f868c2a7a0483a7e9e73f77fcac5d7da49507e5730efd859064f87
description: MuleSoft Documentation Site
release: "2.7"
latest: false
---
# someEntry

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

オブジェクト内の 1 つ以上のエントリが指定された条件に一致すると ​`true`​ を返します。

この関数は、条件に一致する最初の要素が見つかると反復を停止します。

_DataWeave バージョン 2.3.0 で導入されました。_

### [](#パラメーター)パラメーター

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>obj</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">評価するオブジェクト。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>condition</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">オブジェクトの要素を評価するときに使用する条件。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、さまざまな入力での ​`someEntry`​ の動作を示します。

#### [](#ソース)ソース

```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"
}
```

#### [](#出力)出力

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

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

`someEntry`​ を ​`null`​ 値に使用できるようにするヘルパー関数。

_DataWeave バージョン 2.3.0 で導入されました。_