epiphany/node_modules/stylelint/lib/utils/isWhitespace.js
2023-12-09 22:48:07 -08:00

11 lines
215 B
JavaScript

'use strict';
/**
* Check if a character is whitespace.
*
* @param {string} char
* @returns {boolean}
*/
module.exports = function isWhitespace(char) {
return [' ', '\n', '\t', '\r', '\f'].includes(char);
};