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)