deburr()

Converts supplementary latin letters into basic latin letters, removing the diacritical marks.

This function is valid in v2.1.0 to v2.14.0. This function has been downloaded 44 times.

Parameter

{string} str
The string to be modified and returned without supplementary latin letters.

Returns

{string}
Returns a copy of str but with all of the following characters replaced by their corresponding basic latin letters: À, Á, Â, Ã, Ä, Å, Ā convert to A. à, á, â, ã, ä, å, ā convert to a. Ç, Ć, Č convert to C. ç, ć, č convert to c. Ð, Đ convert to D. ð, đ convert to d. È, É, Ê, Ë, Ē, Ė, Ę convert to E. è, é, ê, ë, ē, ė, ę convert to e. Ì, Í, Î, Ï, Ī, Į convert to I. ì, í, î, ï, ī, į convert to i. Ñ, Ń convert to N. ñ, ń convert to n. Ò, Ó, Ô, Õ, Ö, Ø, Ō convert to O. ò, ó, ô, õ, ö, ø, ō convert to o. Ù, Ú, Û, Ü, Ū convert to U. ù, ú, û, ü, ū convert to u. Ý, Ÿ convert to Y. ý, ÿ convert to y. Æ converts to Ae. æ converts to ae. Þ converts to Th. þ converts to th. ß converts to ss. Œ converts to Oe. œ converts to oe. Ł converts to L. ł converts to l.

Required Function

This function requires the following function which is included automatically:

  • slice()
    Slice does not modify the original array, but instead returns a shallow copy of elements from the original array.