Remove all non word characters.
Install
Install all functions of strman
yarn add strman
or just the removeNonWords function
yarn add strman.removenowords
Usage
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'