Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 04c29e4

Browse files
Merge pull request ryanmcdermott#54 from sney2002/master
return true on save method to continue chaining
2 parents 4a2e3c4 + 2da4d4b commit 04c29e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,6 +1563,8 @@ class Car {
15631563

15641564
save() {
15651565
console.log(this.make, this.model, this.color);
1566+
// NOTE: Returning this for chaining
1567+
return this;
15661568
}
15671569
}
15681570

0 commit comments

Comments
 (0)