@visulima/string
Version:
Functions for manipulating strings.
8 lines (7 loc) • 320 B
TypeScript
/**
* Detect the direction of text: left-to-right, right-to-left, or neutral.
* @param value The string to analyze.
* @returns The text direction: 'rtl' for right-to-left, 'ltr' for left-to-right, or 'neutral' for neutral.
*/
declare const direction: (value?: string) => "rtl" | "ltr" | "neutral";
export { direction };