mirror of
https://github.com/sern-handler/website
synced 2026-06-28 02:32:23 +00:00
8 lines
214 B
TypeScript
8 lines
214 B
TypeScript
/**
|
|
* Detect the direction of text: left-to-right, right-to-left, or neutral
|
|
*
|
|
* @param {string} value
|
|
* @returns {'rtl'|'ltr'|'neutral'}
|
|
*/
|
|
export function direction(value: string): 'rtl' | 'ltr' | 'neutral'
|