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

String.left

left($length) -> string

Description

Get the first $length characters.

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

See Also