Version: v0.8.1 - Beta.  We welcome contributors & feedback.

String.append

append($rightString) -> string

Description

Add $rightString to the end of the string.

This is equivalent to the string-append ~ operator, but is easier to chain with other methods.

'abc'.append('-123')
//= 'abc-123'

'abc'.append('-123').toUpperCase()
//= 'ABC-123'

See Also