Skip to content

Commit ae41cd6

Browse files
committed
Describe consturctor calling without "new"
1 parent 0d2b14e commit ae41cd6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ user.save(function (err) {
5252
post.save(console.log);
5353
});
5454

55+
// or just call it as function (with the same result):
56+
var user = User();
57+
user.save(...);
58+
5559
// Common API methods
5660

5761
// just instantiate model

0 commit comments

Comments
 (0)