Skip to content

normalizeString

Normalizes a string by converting it to the NFC form and replacing non-breaking spaces with regular spaces.

Import:

import { normalizeString } from '@mnaoumov/typescript-lib/string';

Signature:

function normalizeString($string: string): string

Parameters:

Parameter Type Description
$string string

Returns: string — The normalized string.