Template:Trunc/doc

Usage
Gives the characters from the start of the string.

If is invalid, empty or undefined, it just returns the string.

Examples

 *  Lorem ipsu  → Lorem ipsu
 *  L  → L
 *   →
 *  Lorem ipsum dolor sit amet  → Lorem ipsum dolor sit amet
 *  Lorem ipsum dolor sit amet  → Lorem ipsum dolor sit amet
 *   →
 *  Lorem ipsum dolor sit amet  → Lorem ipsum dolor sit amet