From 06bfbfaff43139f270b5410151b6a0df9b3b29b7 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 21 Dec 2014 23:08:54 -0600 Subject: [PATCH] Rename `isWhitespace` to `isSpace`. --- lodash.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lodash.js b/lodash.js index 643776889..118cef23b 100644 --- a/lodash.js +++ b/lodash.js @@ -744,7 +744,7 @@ * @param {number} charCode The character code to inspect. * @returns {boolean} Returns `true` if `charCode` is whitespace, else `false`. */ - function isWhitespace(charCode) { + function isSpace(charCode) { return ((charCode <= 160 && (charCode >= 9 && charCode <= 13) || charCode == 32 || charCode == 160) || charCode == 5760 || charCode == 6158 || (charCode >= 8192 && (charCode <= 8202 || charCode == 8232 || charCode == 8233 || charCode == 8239 || charCode == 8287 || charCode == 12288 || charCode == 65279))); } @@ -813,7 +813,7 @@ var index = -1, length = string.length; - while (++index < length && isWhitespace(string.charCodeAt(index))) {} + while (++index < length && isSpace(string.charCodeAt(index))) {} return index; } @@ -828,7 +828,7 @@ function trimmedRightIndex(string) { var index = string.length; - while (index-- && isWhitespace(string.charCodeAt(index))) {} + while (index-- && isSpace(string.charCodeAt(index))) {} return index; }