Skip to content

Commit

Permalink
docs: update previousOf example
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenrui committed Nov 7, 2023
1 parent 0312ba6 commit 1ef9a54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Here are the custom array methods which are available for you to use:
Usage: `array.previousOf('item')`
```js
array = ['Tag 1', 'Tag 2', 'Tag 3', 'Tag 4']
array.nextOf('Tag 2') // returns 'Tag 1'
array.previousOf('Tag 2') // returns 'Tag 1'
```
To trigger a re-render you need to update the variable:
Expand Down

0 comments on commit 1ef9a54

Please sign in to comment.