Is there a more efficient way for returning an object instead of having to return this; after each method? I’m aware of jQuery’s return this.each, but I don’t think that is applicable here.
Any help is welcome.
Edit: I found a partial solution by chaining each method in a function called all, and then calling it on the object. Notice I still have to return this after each method though. Any way to do this only once?