MCPcopy
hub / github.com/webpack/webpack / isASCIIWhitespace

Function isASCIIWhitespace

lib/html/HtmlParser.js:83–96  ·  view source on GitHub ↗

* @param {number} char char * @returns {boolean} true when ASCII whitespace, otherwise false

(char)

Source from the content-addressed store, hash-verified

81 * @returns {boolean} true when ASCII whitespace, otherwise false
82 */
83function isASCIIWhitespace(char) {
84 return (
85 // Horizontal tab
86 char === HORIZONTAL_TAB ||
87 // New line
88 char === NEWLINE ||
89 // Form feed
90 char === FORM_FEED ||
91 // Carriage return
92 char === CARRIAGE_RETURN ||
93 // Space
94 char === SPACE
95 );
96}
97
98/** @typedef {import("./syntax").ParsedSource} ParsedSource */
99

Callers 3

parseMsapplicationTaskFunction · 0.85
parseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected