Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
Normalize Special Characters
node v16.18.0
version:
1.0.0
endpoint
share
tweet
var _ = require("
[email protected]
") _.assign(global, require("lodash-doc-globals")) Object.observe = _.noop
const clearSpecialCharacter = (text) => _.deburr(text).toLowerCase().replaceAll(/\s{2,}|\W/g, ""); clearSpecialCharacter('Coração \* Ésteván'); // => 'deja vu'
Created from: https://lodash.com/docs/4.17.15#deburr
Loading…
no comments
sign in
to comment