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

String.left

left($length) -> string

Description

Get the first $length characters.

'abcdef'.left(3)
//= 'abc'

See Also