Skip to content

concat ​

concat() concatenates a String (wrapped) with one or more strings (wrapped or raw). Supports the curried version.

Interactive example ​

Syntax ​

Classic signature ​

typescript
function concat(
	input: String, 
	...textsRest: (String | string)[]
): String

Curried signature ​

typescript
function concat(
	text: String | string
): (input: String) => String

Parameters ​

  • input : base string (classic signature only).
  • textsRest : elements to concatenate.
  • text : first element to concatenate (curried signature only).

Return value ​

A wrapped String containing the concatenation.

See also ​

Released under the MIT license.