UNPKG

@stylistic/stylelint-plugin

Version:
9 lines (8 loc) 267 B
/** * Checks if a character is whitespace. * @param {string} char - The character to check. * @returns {boolean} True if the character is whitespace, false otherwise. */ export function isWhitespace (char) { return [` `, `\n`, `\t`, `\r`, `\f`].includes(char) }