UNPKG

is-whitespace-character

Version:
9 lines (8 loc) 304 B
/** * 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