Console
hyTags
Home
Home
Getting Started
Getting Started
Documentation
Documentation
string-get-prefix
Gets the first N characters of a string.
Parameter
Type
Description
self
string
String to get prefix from
length
number
Number of characters to extract
return
string
String containing the first N characters