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

Make a wrapper and a set of helper methods for wrapper #7

Open
7 tasks
blond opened this issue Jul 2, 2016 · 0 comments
Open
7 tasks

Make a wrapper and a set of helper methods for wrapper #7

blond opened this issue Jul 2, 2016 · 0 comments

Comments

@blond
Copy link
Owner

blond commented Jul 2, 2016

It should creates a hoi object which wraps value to enable implicit method chain sequences.
Methods that operate on and return iterators, and so on.

const hoi = require('hoi');

const set = new Set([1, 2]);
const iter = set.values();

hoi(iter)
    .forEach(function: )
    .filter(function: Boolean)
    .map(function: *)

List of methods sorted by priority:

  • forEach(function: void): void
  • map(function: *): HOIterator
  • indexOf(*): Number
  • includes(*): Boolean
  • includesBy(, function(): *): Boolean
  • includesWith(, function(, *): Number): Boolean
  • filter(function: Boolean): HOIterator
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

No branches or pull requests

1 participant