mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
13 lines
328 B
JavaScript
13 lines
328 B
JavaScript
![]() |
/**
|
||
|
* 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);
|
||
|
}
|
||
|
|
||
|
module.exports = charAtCallback;
|