securityos/node_modules/stylelint/lib/utils/isWhitespace.js

12 lines
215 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
'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);
};