-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4f21e47
commit 51dadcf
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# The [trimStart](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trimStart) method for IE | ||
# The [Reflect.ownKeys](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/ownKeys) method for legacy. | ||
|
||
[![Build Status](https://travis-ci.com/ungap/trim-start.svg?branch=master)](https://travis-ci.com/ungap/trim-start) [![Coverage Status](https://coveralls.io/repos/github/ungap/trim-start/badge.svg?branch=master)](https://coveralls.io/github/ungap/trim-start?branch=master) | ||
[![Build Status](https://travis-ci.com/ungap/own-keys.svg?branch=master)](https://travis-ci.com/ungap/own-keys) [![Coverage Status](https://coveralls.io/repos/github/ungap/own-keys/badge.svg?branch=master)](https://coveralls.io/github/ungap/own-keys?branch=master) | ||
|
||
It removes leading spaces from a string. | ||
It returns `Reflect.ownKeys`, eventually including symbols too, if the browser is compatible. | ||
|
||
```js | ||
import trimStart from '@ungap/trim-start'; | ||
import ownKeys from '@ungap/own-keys'; | ||
|
||
trimStart.call(' test '); // "test " | ||
ownKeys({a, 1}); // ['a'] | ||
``` | ||
|
||
* CDN via https://unpkg.com/@ungap/trim-start | ||
* ESM via `import trimStart from '@ungap/trim-start'` | ||
* CJS via `const trimStart = require('@ungap/trim-start')` | ||
* CDN via https://unpkg.com/@ungap/own-keys | ||
* ESM via `import ownKeys from '@ungap/own-keys'` | ||
* CJS via `const ownKeys = require('@ungap/own-keys')` | ||
|
||
Compatible with every engine. |