Skip to content

Merge

Merges multiple strings into a single string using a specified separator.

merge('-', 'Apple', 'Orange', 'Banana') // 'Apple-Orange-Banana'
merge(true, ['Banana', 'Orange', 'Apple', 'Mango']) // 'Banana Orange Apple Mango'
merge(false, ['1', '2', '3'], ['4', '5', '6']) // '123456'