* The base implementation of `_.trim`. * * @private * @param {string} string The string to trim. * @returns {string} Returns the trimmed string.
(string)
| 1016 | * @returns {string} Returns the trimmed string. |
| 1017 | */ |
| 1018 | function baseTrim(string) { |
| 1019 | return string |
| 1020 | ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '') |
| 1021 | : string; |
| 1022 | } |
| 1023 | |
| 1024 | /** |
| 1025 | * The base implementation of `_.unary` without support for storing metadata. |
no test coverage detected