.prepend(val)

Description

Returns a new string with val placed in front of the current string.

Parameters

  • val — value to prepend (stringified if necessary).

Usage

log "world".prepend("hello ") // "hello world"

Last updated

Was this helpful?