Skip to content

Commit

Permalink
doc: use spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanmylee committed Apr 14, 2022
1 parent fdf99a5 commit a99e858
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 @@ -93,7 +93,7 @@ Provide a custom `isEqual` function to compare objects.

```ts
const [current, previous] = withPrevious(0, {
isEqual: (a, b) => a.name === b.name && a.age === b.age,
isEqual: (a, b) => a.name === b.name && a.age === b.age,
});
```

Expand All @@ -103,6 +103,6 @@ It is also possible to use [lodash.isequal](https://www.npmjs.com/package/lodash
import isEqual from 'lodash.isequal';

const [current, previous] = withPrevious(0, {
isEqual: isEqual,
isEqual: isEqual,
});
```

0 comments on commit a99e858

Please sign in to comment.