Remove all non word characters.
Install
Install all functions of strman
yarn add strmanor just the removeNonWords function
yarn add strman.removenowordsUsage
import { removeNonWords } from 'strman'
// OR
import removeNonWords from 'strman.removenowords'Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
value |
String | The String! |
||
replaced |
String |
<optional> |
'' | Value to replace. |
- Source:
Returns:
String without non word characters.
- Type
- String
Example
const title = '__strman../'
removeNonWords(title)
// => 'strman'