Files
GNX-mailEnterprise/frontend/node_modules/hast-util-whitespace/index.d.ts
Iliyan Angelov c67067a2a4 Mail
2025-09-14 23:24:25 +03:00

14 lines
498 B
TypeScript

/**
* Check if the given value is *inter-element whitespace*.
*
* @param {unknown} thing
* Thing to check (typically `Node` or `string`).
* @returns {boolean}
* Whether the `value` is inter-element whitespace (`boolean`): consisting of
* zero or more of space, tab (`\t`), line feed (`\n`), carriage return
* (`\r`), or form feed (`\f`).
* If a node is passed it must be a `Text` node, whose `value` field is
* checked.
*/
export function whitespace(thing: unknown): boolean