![]() |
VOOZH | about |
The d3.merge() function in D3.js is used to merge the two given arrays into a single array.
d3.merge(Array1, Array2)This function accepts two parameters which are mentioned above and described below:
It returns the merged single array.
Example 1: This example shows the use of the merge() function.
Output:
[10, 20, 30, 1, 2, 3]Example 2: This example shows the use of the merge() function.
Output:
[A, B, C, a, b, c]