Skip to content

Conversation

dgramop
Copy link
Contributor

@dgramop dgramop commented Aug 1, 2018

Sometimes we find the need to daisy chain or nest functions, and I felt that returning "this" would allow that to happen. This would let people do stuff like
new NodeRSA().importKey(...), although new NodeRSA(...) would technically be advantageous

Sometimes we find the need to daisy chain or nest functions, and I felt that returning "`this`" would allow that to happen. This would let people do stuff like
`new NodeRSA().importKey(...)`, although `new NodeRSA(...)` would technically be advantageous
@rzcoder
Copy link
Owner

rzcoder commented Aug 1, 2018

Good point!

@rzcoder rzcoder merged commit ad881cd into rzcoder:master Aug 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants