Skip to content

Commit 4ee33f2

Browse files
author
Spike Brehm
committed
Less dogmatic about instance methods returning this.
1 parent bde1411 commit 4ee33f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@
10541054
};
10551055
```
10561056

1057-
- Constructor methods should try to return `this`. This helps with method chaining which is often useful.
1057+
- Methods can return `this` to help with method chaining.
10581058

10591059
```javascript
10601060
// bad

0 commit comments

Comments
 (0)