Skip to content

Commit

Permalink
updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
WebReflection committed Apr 16, 2020
1 parent 4f21e47 commit 51dadcf
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
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.

0 comments on commit 51dadcf

Please sign in to comment.