is-whitespace-character

WebJar for is-whitespace-character

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

is-whitespace-character
Last Version

Last Version

1.0.4
Release Date

Release Date

Type

Type

jar
Description

Description

is-whitespace-character
WebJar for is-whitespace-character
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/wooorm/is-whitespace-character

Download is-whitespace-character

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/is-whitespace-character/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>is-whitespace-character</artifactId>
    <version>1.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/is-whitespace-character/
implementation 'org.webjars.npm:is-whitespace-character:1.0.4'
// https://jarcasting.com/artifacts/org.webjars.npm/is-whitespace-character/
implementation ("org.webjars.npm:is-whitespace-character:1.0.4")
'org.webjars.npm:is-whitespace-character:jar:1.0.4'
<dependency org="org.webjars.npm" name="is-whitespace-character" rev="1.0.4">
  <artifact name="is-whitespace-character" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='is-whitespace-character', version='1.0.4')
)
libraryDependencies += "org.webjars.npm" % "is-whitespace-character" % "1.0.4"
[org.webjars.npm/is-whitespace-character "1.0.4"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

is-whitespace-character

Build Coverage Downloads Size

Check if a character is a whitespace character: \s, which equals all Unicode Space Separators (including [ \t\v\f]), the BOM (\uFEFF), and line terminator ([\n\r\u2028\u2029]).

Install

npm:

npm install is-whitespace-character

Use

var whitespace = require('is-whitespace-character')

whitespace(' ') // => true
whitespace('\n') // => true
whitespace('\uFEFF') // => true
whitespace('_') // => false
whitespace('a') // => false
whitespace('💩') // => false

API

whitespaceCharacter(character|code)

Check whether the given character code (number), or the character code at the first position (string), is a whitespace character.

Related

License

MIT © Titus Wormer

Versions

Version
1.0.4
1.0.3
1.0.2
1.0.1