23 lines
566 B
TypeScript
23 lines
566 B
TypeScript
/**
|
|
* Get the first character of a value.
|
|
*
|
|
* Is aware of astral characters (such as emoji).
|
|
*
|
|
* @param {string} value
|
|
* Value.
|
|
* @returns {string}
|
|
* First character; empty if `value` is empty.
|
|
*/
|
|
export function firstCharacter(value: string): string;
|
|
/**
|
|
* Get the last character of a value.
|
|
*
|
|
* Is aware of astral characters (such as emoji).
|
|
*
|
|
* @param {string} value
|
|
* Value.
|
|
* @returns {string}
|
|
* Last character; empty if `value` is empty.
|
|
*/
|
|
export function lastCharacter(value: string): string;
|
|
//# sourceMappingURL=character.d.ts.map
|