is-whitespace-code-point
Checks if a given code point (ie, the return value from
String.p.charCodeAt) is whitespace. Semantically
equivalent to /\s/
, but considerably faster.
Installation
npm install is-whitespace-code-point
Usage
var isWhitespace = // => true // => true // => true // => true // => true // => true // => false // => false // => false
License
MIT