Skip to content

NodeRSA.importKey() now returns this #124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 1, 2018
Merged

NodeRSA.importKey() now returns this #124

merged 1 commit into from
Aug 1, 2018

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