コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
arrays.concat
arrays.concat(string_array, string_array)
説明
元の文字列配列から要素をコピーして、新しい文字列配列を返します。
パラメータのデータ型
ARRAY_STRINGS
、ARRAY_STRINGS
戻り値の型
ARRAY_STRINGS
コードサンプル
例 1
次の例では、2 つの異なる文字列配列を連結しています。
arrays.concat(["test1", "test2"], ["test3"]) = ["test1", "test2", "test3"]
例 2
次の例では、空の文字列を使用して配列を連結します。
arrays.concat([""], [""]) = ["", ""]
例 3
次の例では、空の配列を連結します。
arrays.concat([], []) = []
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-29 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-29 UTC。"],[[["\u003cp\u003e\u003ccode\u003earrays.concat\u003c/code\u003e is a function that returns a new string array by combining elements from two input string arrays.\u003c/p\u003e\n"],["\u003cp\u003eThis function is supported in Rules and Search contexts within the specified platform.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts two \u003ccode\u003eARRAY_STRINGS\u003c/code\u003e as parameters and returns an \u003ccode\u003eARRAY_STRINGS\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eEmpty string arrays can be passed as parameters, resulting in an empty or combined array as per the operation.\u003c/p\u003e\n"],["\u003cp\u003eThe elements passed as parameters to this method are copied to a new array.\u003c/p\u003e\n"]]],[],null,["### arrays.concat\n\nSupported in: \n[Rules](/chronicle/docs/detection/default-rules) [Search](/chronicle/docs/investigation/udm-search) \n\n arrays.concat(string_array, string_array)\n\n#### Description\n\nReturns a new string array by copying elements from original string arrays.\n\n#### Param data types\n\n`ARRAY_STRINGS`, `ARRAY_STRINGS`\n\n#### Return type\n\n`ARRAY_STRINGS`\n\n#### Code samples\n\n##### Example 1\n\nThe following example concatenates two different string arrays. \n\n arrays.concat([\"test1\", \"test2\"], [\"test3\"]) = [\"test1\", \"test2\", \"test3\"]\n\n##### Example 2\n\nThe following example concatenates arrays with empty string. \n\n arrays.concat([\"\"], [\"\"]) = [\"\", \"\"]\n\n##### Example 3\n\nThe following example concatenates empty arrays. \n\n arrays.concat([], []) = []"]]