Software Engineer

MARYAN
MATS .

Creative Engineer & TypeScript Devotee. I craft web interfaces with obsessive attention to detail and write about what I learn along the way.

TypeScript React Next.js Astro

Interactive 3D wireframe figure showcasing latest blog posts

Latest post

click to explore

Latest article

View all →
9 min read

Why `.length` Is Wrong for Strings in JavaScript — and How Intl.Segmenter Fixes It

JavaScript's .length, .split(''), and [...str] return three different lengths for the same string — and for any text with emoji, accents, or non-Latin scripts, all three are wrong for users. Intl.Segmenter, now in every browser, splits strings the way humans actually read them.

javascript unicode strings internationalization

More articles

Selected projects

View all →