Skip to content

Commit

Permalink
Oldie but goodie Object.keys instead of Object.values
Browse files Browse the repository at this point in the history
  • Loading branch information
brabadu committed Oct 3, 2017
1 parent c7f16a9 commit 434036e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/streamWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ StreamWrapper.prototype.subWithMeta = function(sub, metadata) {


StreamWrapper.prototype.onShutdown = function() {
Object.values(this.subs).forEach((subStream) => {
subStream.onShutdown();
Object.keys(this.subs).forEach((subStreamKey) => {
this.subs[subStreamKey].onShutdown();
});
this.shutdownActions.forEach((shutdownAction) => shutdownAction());
}

0 comments on commit 434036e

Please sign in to comment.