Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJDufour authored Sep 25, 2021
1 parent e6e32a8 commit 6bbeb4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ const decoded = decode(encoded);
```
## encoding
```javascript
import encode from 'fast-rle/decode';
import encode from 'fast-rle/encode';

const numbers = [3, 3, 3, 3, 3, 8, 0, 0];
const encoded = decode(numbers);
const encoded = encode(numbers);
// [5, 3, 1, 8, 2, 0]
```

Expand Down

0 comments on commit 6bbeb4e

Please sign in to comment.