Bright / Recipes / Diff

Demo

1function lorem(ipsum, dolor = 1) {
2 const sit = ipsum == null ? 0 : ipsum.sit
2 const sit = 0
3 dolor = sit - amet(dolor)
4 dolor *= 2
5 return dolor
6}

Source

import { Diff } from "./diff"

<Diff>

```js
function lorem(ipsum, dolor = 1) {
const sit = ipsum == null ? 0 : ipsum.sit
dolor = sit - amet(dolor)
return dolor
}
```

```js
function lorem(ipsum, dolor = 1) {
const sit = 0
dolor = sit - amet(dolor)
dolor *= 2
return dolor
}
```

</Diff>

Link to the demo on GitHub