Skip to content
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

Implement identification primitives #304

Merged
merged 2 commits into from
Jan 8, 2019
Merged

Implement identification primitives #304

merged 2 commits into from
Jan 8, 2019

Conversation

belochub
Copy link
Member

Refs: #8
Refs: metarhia/Metarhia#21

@belochub belochub self-assigned this Dec 17, 2018
this.host = host;
this.ports = ports;
if (this.ports.length > 1) {
this.ports = sequence(this.ports, 0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.ports = ports.length > 1 ? sequence(this.ports, 0) : ports

return [arrayifyTree(node[0]), arrayifyTree(node[1])];
} else {
return node;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  }
  return node;
}


const contains = (test, object, expected) => {
for (const key in expected) {
if (!expected.hasOwnProperty(key)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer Object.keys instead of manual checking properties here.

@belochub
Copy link
Member Author

belochub commented Jan 2, 2019

Ping @nechaido, @tshemsedinov.

@lundibundi
Copy link
Member

ping @tshemsedinov

@belochub belochub merged commit 6f8d80c into master Jan 8, 2019
@belochub belochub deleted the identification branch January 8, 2019 14:24
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.

4 participants