prepend

Prepends a specified string at the beginning of another string.

Parameters

  • str1 {String}: The string to prepend.
  • str2 {String}: The string to add at the beginning.
  • returns {String}: The resulting string.

Usage

{{ prepend str1 str2 }}

Example

{{ prepend 'hello' 'world' }} <!-- Outputs: 'worldhello' -->

Output
worldhello <!-- Outputs: 'worldhello' -->
Was this article helpful to you?

Error loading component.

Error loading component.