Skip to main content

removeSpecialCharacters

A function that takes a string and returns a string stripped of special characters.


Interface

const removeSpecialCharacters: (value: string) => string

Usage

import { removeSpecialCharacters } from '@devgrace/utils';

const str = removeSpecialCharacters('H@#!ello, @Wo!@!&@rld!'); // Hello World