Skip to content

Commit

Permalink
Tweak simpify README [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
existentialism committed Dec 5, 2016
1 parent a0922fc commit dedbf05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/babel-plugin-minify-simplify/README.md
Expand Up @@ -5,6 +5,7 @@ This plugin will transform code in mainly two ways:
1. Reduce as much statements as possible into expressions

**In**

```js
function foo() {
if (x) a();
Expand All @@ -16,6 +17,7 @@ function foo2() {
```

**Out**

```js
function foo() {
x && a();
Expand All @@ -28,13 +30,15 @@ function foo2() {
2. Make expressions as uniform as possible for better compressibility

**In**

```js
undefined
foo['bar']
Number(foo)
```

**Out**

```js
void 0
foo.bar
Expand Down

0 comments on commit dedbf05

Please sign in to comment.