Skip to content

Instantly share code, notes, and snippets.

@tobie
Created June 16, 2017 09:21
Show Gist options
  • Save tobie/7eb10bbefe85786f577bb53d00d167a0 to your computer and use it in GitHub Desktop.
Save tobie/7eb10bbefe85786f577bb53d00d167a0 to your computer and use it in GitHub Desktop.
parsed_idl.members.forEach(function(member) {
this.members[parsed_idl.name].members.push(
new IdlInterfaceMember(member)
);
}.bind(this));
parsed_idl.members.forEach(
function(member) {
this.members[parsed_idl.name].members.push(
new IdlInterfaceMember(member)
);
}.bind(this)
);
@tobie
Copy link
Author

tobie commented Jun 16, 2017

What I'd really like this whole thing to look like

                parsed_idl.members.forEach(member => {
                    let members = this.members[parsed_idl.name].members;
                    members.push(new IdlInterfaceMember(member));
                });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment