mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Correct isWhitespace docs. [ci skip]
This commit is contained in:
12
lodash.js
12
lodash.js
@@ -530,15 +530,15 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Used by `_.trimmedLeftIndex` and `_.trimmedRightIndex` to determine if a
|
* Used by `_.trimmedLeftIndex` and `_.trimmedRightIndex` to determine if a
|
||||||
* charCode is whitespace.
|
* character code is whitespace.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {number} c The charCode to inspect.
|
* @param {number} charCode The character code to inspect.
|
||||||
* @returns {number} Returns the index of the first non-whitespace character.
|
* @returns {boolean} Returns `true` if `charCode` is whitespace, else `false`.
|
||||||
*/
|
*/
|
||||||
function isWhitespace(c) {
|
function isWhitespace(charCode) {
|
||||||
return ((c <= 160 && (c >= 9 && c <= 13) || c == 32 || c == 160) || c == 5760 || c == 6158 ||
|
return ((charCode <= 160 && (charCode >= 9 && charCode <= 13) || charCode == 32 || charCode == 160) || charCode == 5760 || charCode == 6158 ||
|
||||||
(c >= 8192 && (c <= 8202 || c == 8232 || c == 8233 || c == 8239 || c == 8287 || c == 12288 || c == 65279)));
|
(charCode >= 8192 && (charCode <= 8202 || charCode == 8232 || charCode == 8233 || charCode == 8239 || charCode == 8287 || charCode == 12288 || charCode == 65279)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user