is-whitespace-character
Version:
Check if a character is a whitespace character
9 lines (8 loc) • 304 B
TypeScript
/**
* Check if the given character code, or the character code at the first
* character, is a whitespace character.
*
* @param {string|number} character
* @returns {boolean} Whether `character` is a whitespace character
*/
export function isWhitespaceCharacter(character: string | number): boolean