![]() |
VOOZH | about |
Lodash _.join() function is used to convert all elements in the array into a string separated by a separator.
_.join(array, [separator=',']);Example 1: In this example, the _.join() method joins together the elements of the array into a string using ‘|’.
Output:
👁 ImageExample 2: In this example, the _.join() method joins together the elements of the array into a string using ‘, ‘ since it is the default value.
Output:
👁 ImageExample 3: In this example, the _.join() method joins together the elements of the array into a string using ‘ ‘ (empty string).