Skip to end of banner
Go to start of banner

arrayUnion

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Availability

This routine is available since katl-commons 2.5.7.

Syntax:

arrayUnion(arrayName1, arrayName2)

Description:

Union between two arrays.

Parameters:

Parameter name

Type

Required

Description

arrayName1

array

Yes

The first array.

arrayName2arrayYesThe second array.

Return Type:

array

Example:

string[] developers= usersInGroups({"jira-developers"});
string[] administrators = usersInGroups({"jira-administrators"});
return arrayUnion(developers, administrators);

The result returned by the routine is an array which contains the unique elements from developers and administrators.

 

See Also:

  • No labels