schlechtenburg/packages/rich-text/lib/length.ts
2024-10-08 09:15:26 +02:00

6 lines
120 B
TypeScript

import { RichTextValue } from './types';
export function length( a: RichTextValue ): number {
return a.text.length;
}