mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-29 14:36:22 +00:00
27 lines
726 B
Markdown
27 lines
726 B
Markdown
---
|
|
id: a414ac2c-21a9-4bf2-99ec-15ae9da28519
|
|
title: Characters That Count as Whitespace
|
|
---
|
|
|
|
# Description
|
|
|
|
Characters that count as whitespace in [JavaScript
|
|
Strings](20200922164551-strings).
|
|
|
|
# WhiteSpace code points
|
|
|
|
- `<TAB>` (CHARACTER TABULATION, U+0009)
|
|
- `<VT>` (LINE TABULATION, U+000B)
|
|
- `<FF>` (FORM FEED, U+000C)
|
|
- `<SP>` (SPACE, U+0020)
|
|
- `<NBSP>` (NO-BREAK SPACE, U+00A0)
|
|
- `<ZWNBSP>` (ZERO WIDTH NO-BREAK SPACE, U+FEFF)
|
|
- Any other Unicode character with the property `White_Space` in
|
|
category Space~Separator~ (Zs).
|
|
|
|
# LineTerminator code points
|
|
|
|
- `<LF>` (LINE FEED, U+000A)
|
|
- `<CR>` (CARRIAGE RETURN, U+000D)
|
|
- `<LS>` (LINE SEPARATOR, U+2028)
|
|
- `<PS>` (PARAGRAPH SEPARATOR, U+2029)
|