trim-right-x

WebJar for trim-right-x

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

trim-right-x
Last Version

Last Version

3.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

trim-right-x
WebJar for trim-right-x
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/Xotic750/trim-right-x

Download trim-right-x

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.npm : cached-constructors-x jar [1.0.0,2)
org.webjars.npm : require-coercible-to-string-x jar [1.0.0,2)
org.webjars.npm : white-space-x jar [3.0.0,4)

Project Modules

There are no modules declared in this project.

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

trim-right-x (a.k.a trimEnd in ES2019)

This method removes whitespace from the end of a string.

module.exports(string)number

trim-right-xstring

This method removes whitespace from the end of a string. (ES2019)

Kind: static property of trim-right-x
Returns: string - The right trimmed string.
Throws:

  • TypeError If string is null or undefined or not coercible.
Param Type Description
string string The string to trim the right end whitespace from.

Example

import trimEnd from 'trim-right-x';

console.log(trimEnd(' \t\na \t\n') === ' \t\na'); // true

Versions

Version
3.0.0