Skip to content

Commit

Permalink
Unshorten code in method definition (#18457)
Browse files Browse the repository at this point in the history
* fixes #18444

* Update index.md

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
  • Loading branch information
awxiaoxian2020 and Josh-Cena committed Jul 18, 2022
1 parent 2d2a665 commit 81e2700
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ Given the following code:

```js
const obj = {
foo() {
foo: function () {
// ...
},
bar() {
bar: function () {
// ...
}
}
Expand Down

0 comments on commit 81e2700

Please sign in to comment.