mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 10:27:49 +00:00
Remove references to _.
This commit is contained in:
@@ -11,19 +11,18 @@ const reTrimEnd = /\s+$/;
|
||||
* Removes trailing whitespace or specified characters from `string`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category String
|
||||
* @param {string} [string=''] The string to trim.
|
||||
* @param {string} [chars=whitespace] The characters to trim.
|
||||
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
|
||||
* @param- {Object} [guard] Enables use as an iteratee for methods like `map`.
|
||||
* @returns {string} Returns the trimmed string.
|
||||
* @example
|
||||
*
|
||||
* _.trimEnd(' abc ');
|
||||
* trimEnd(' abc ');
|
||||
* // => ' abc'
|
||||
*
|
||||
* _.trimEnd('-_-abc-_-', '_-');
|
||||
* trimEnd('-_-abc-_-', '_-');
|
||||
* // => '-_-abc'
|
||||
*/
|
||||
function trimEnd(string, chars, guard) {
|
||||
|
||||
Reference in New Issue
Block a user