trim-left-x

WebJar for trim-left-x

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

trim-left-x
Last Version

Last Version

3.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

trim-left-x
WebJar for trim-left-x
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download trim-left-x

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/trim-left-x/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>trim-left-x</artifactId>
    <version>3.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/trim-left-x/
implementation 'org.webjars.npm:trim-left-x:3.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/trim-left-x/
implementation ("org.webjars.npm:trim-left-x:3.0.0")
'org.webjars.npm:trim-left-x:jar:3.0.0'
<dependency org="org.webjars.npm" name="trim-left-x" rev="3.0.0">
  <artifact name="trim-left-x" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='trim-left-x', version='3.0.0')
)
libraryDependencies += "org.webjars.npm" % "trim-left-x" % "3.0.0"
[org.webjars.npm/trim-left-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-left-x (a.k.a trimStart in ES2019)

This method removes whitespace from the start of a string.

module.exports(string)number

trim-left-xstring

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

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

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

Example

import trimStart from 'trim-left-x';

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

Versions

Version
3.0.0