---
schema_version: "1"
id: 8e143060fe8771185974efaa8af20d95b66ade23bebef877f41f7f6afb266a17
title: isWhitespace
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.8/dw-strings-functions-iswhitespace.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.8/dw-strings-functions-iswhitespace
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 2cfa3bc990cb627ea4eb1a36807b001b4224ab259282653094936912aa9c8551
description: MuleSoft Documentation Site
release: "2.8"
latest: false
---
# isWhitespace

## [](#iswhitespace1)isWhitespace(text: String): Boolean

`text`​ に空白のみが含まれるかどうかを確認します。

_DataWeave バージョン 2.2.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>text</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">入力文字列。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、さまざまな入力とサイズでの ​`isWhitespace`​ の動作を示します。

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

```DataWeave
%dw 2.0
import isWhitespace from dw::core::Strings
output application/json
---
{
  "a": isWhitespace(null),
  "b": isWhitespace(""),
  "c": isWhitespace("  "),
  "d": isWhitespace("abc"),
  "e": isWhitespace("ab2c"),
  "f": isWhitespace("ab-c")
}
```

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

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

## [](#iswhitespace2)isWhitespace(text: Null): Boolean

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

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