* @param {number} char char * @returns {boolean} true when ASCII whitespace, otherwise false
(char)
| 81 | * @returns {boolean} true when ASCII whitespace, otherwise false |
| 82 | */ |
| 83 | function 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 |
no outgoing calls
no test coverage detected