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

String.left

left($length) -> string

Description

Get the first $length characters.

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

See Also