UNPKG

stylelint

Version:

A mighty CSS linter that helps you avoid errors and enforce conventions.

10 lines (9 loc) 197 B
/** * Check if a character is whitespace. * * @param {string} char * @returns {boolean} */ export default function isWhitespace(char) { return [' ', '\n', '\t', '\r', '\f'].includes(char); }