wiki/content/20201116100926-characters_that_count_as_whitespace.md

743 B

date id title
2020-11-16 a414ac2c-21a9-4bf2-99ec-15ae9da28519 Characters That Count as Whitespace

Description

Characters that count as whitespace in JavaScript 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 SpaceSeparator (Zs).

LineTerminator code points

  • <LF> (LINE FEED, U+000A)
  • <CR> (CARRIAGE RETURN, U+000D)
  • <LS> (LINE SEPARATOR, U+2028)
  • <PS> (PARAGRAPH SEPARATOR, U+2029)