Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

trim-left-x

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trim-left-x - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

4

dist/trim-left-x.js
/*!
{
"copywrite": "Copyright (c) 2017",
"date": "2019-07-10T22:30:45.172Z",
"date": "2019-07-10T22:36:42.380Z",
"describe": "",

@@ -10,3 +10,3 @@ "description": "This method removes whitespace from the left end of a string.",

"license": "MIT",
"version": "4.0.0"
"version": "4.0.1"
}

@@ -13,0 +13,0 @@ */

/*!
{
"copywrite": "Copyright (c) 2017",
"date": "2019-07-10T22:30:45.172Z",
"date": "2019-07-10T22:36:42.380Z",
"describe": "",

@@ -10,3 +10,3 @@ "description": "This method removes whitespace from the left end of a string.",

"license": "MIT",
"version": "4.0.0"
"version": "4.0.1"
}

@@ -13,0 +13,0 @@ */

{
"name": "trim-left-x",
"version": "4.0.0",
"version": "4.0.1",
"description": "This method removes whitespace from the left end of a string.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/Xotic750/trim-left-x",

@@ -24,23 +24,12 @@ <a href="https://travis-ci.org/Xotic750/trim-left-x"

## trim-left-x
This method removes whitespace from the left end of a string.
**Version**: 3.0.0
**Author**: Xotic750 <Xotic750@gmail.com>
**License**: [MIT](&lt;https://opensource.org/licenses/MIT&gt;)
**Copyright**: Xotic750
- [trim-left-x](#module_trim-left-x)
- [`.trimLeft2016`](#module_trim-left-x.trimLeft2016) ⇒ <code>string</code>
* [trim-left-x](#module_trim-left-x)
* [`.trimLeft`](#module_trim-left-x.trimLeft)
* [`.trimLeft2016`](#module_trim-left-x.trimLeft2016) ⇒ <code>string</code>
* [`.trimLeft2018`](#module_trim-left-x.trimLeft2018) ⇒ <code>string</code>
<a name="module_trim-left-x.trimLeft"></a>
### `trim-left-x.trimLeft`
A reference to leftTrim2018.
**Kind**: static property of [<code>trim-left-x</code>](#module_trim-left-x)
<a name="module_trim-left-x.trimLeft2016"></a>
### `trim-left-x.trimLeft2016` ⇒ <code>string</code>
This method removes whitespace from the left end of a string. (ES2016)

@@ -54,16 +43,18 @@

| Param | Type | Description |
| --- | --- | --- |
| Param | Type | Description |
| ------ | ------------------- | ------------------------------------------------ |
| string | <code>string</code> | The string to trim the left end whitespace from. |
**Example**
**Example**
```js
var trimLeft = require('trim-left-x').trimLeft2016;
import {trimLeft2016} from 'trim-left-x';
trimLeft(' \t\na \t\n') === 'a \t\n'; // true
console.log(trimLeft2016(' \t\na \t\n') === 'a \t\n'); // true
```
<a name="module_trim-left-x.trimLeft2018"></a>
### `trim-left-x.trimLeft2018` ⇒ <code>string</code>
<a name="module_trim-left-x"></a>
### `trim-left-x` ⇒ <code>string</code>
This method removes whitespace from the left end of a string. (ES2018)

@@ -77,12 +68,12 @@

| Param | Type | Description |
| --- | --- | --- |
| Param | Type | Description |
| ------ | ------------------- | ------------------------------------------------ |
| string | <code>string</code> | The string to trim the left end whitespace from. |
**Example**
**Example**
```js
var trimLeft = require('trim-left-x').trimLeft2018;
import trimLeft from 'trim-left-x');
trimLeft(' \t\na \t\n') === 'a \t\n'; // true
console.log(trimLeft(' \t\na \t\n') === 'a \t\n'); // true
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc