mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Remove unused function charAtCallback.
This commit is contained in:
@@ -395,17 +395,6 @@
|
|||||||
return value == null ? '' : (value + '');
|
return value == null ? '' : (value + '');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Used by `_.max` and `_.min` as the default callback for string values.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {string} string The string to inspect.
|
|
||||||
* @returns {number} Returns the code unit of the first character of the string.
|
|
||||||
*/
|
|
||||||
function charAtCallback(string) {
|
|
||||||
return string.charCodeAt(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used by `_.trim` and `_.trimLeft` to get the index of the first character
|
* Used by `_.trim` and `_.trimLeft` to get the index of the first character
|
||||||
* of `string` that is not found in `chars`.
|
* of `string` that is not found in `chars`.
|
||||||
|
|||||||
Reference in New Issue
Block a user