主题
deburr
js
_.deburr([string=''])
通过将 Latin-1 补充 和 Latin Extended-A 字母转换为基本拉丁字母并删除 组合变音符号 来消除 string
的毛刺。
¥Deburrs string
by converting Latin-1 Supplement and Latin Extended-A letters to basic Latin letters and removing combining diacritical marks.
新增于
¥Since
3.0.0
参数
¥Arguments
[string='']
(字符串):要去毛刺的字符串。¥
[string='']
(string): The string to deburr.
返回
¥Returns
(字符串):返回去毛刺后的字符串。
¥(string): Returns the deburred string.
示例
¥Example
js
_.deburr('déjà vu');
// => 'deja vu'