Internal
Trims matching characters from both ends of a string. Used primarily for removing quotes from attribute values.
The string to trim, or undefined
undefined
The character to strip from both ends
The trimmed string, or undefined if input was undefined
trim('"hello"', '"'); // "hello"trim(undefined, '"'); // undefined Copy
trim('"hello"', '"'); // "hello"trim(undefined, '"'); // undefined
Trims matching characters from both ends of a string. Used primarily for removing quotes from attribute values.