Skip to content

Instantly share code, notes, and snippets.

@genediazjr
Created November 18, 2014 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save genediazjr/34b809b6a46cf2626b26 to your computer and use it in GitHub Desktop.
Save genediazjr/34b809b6a46cf2626b26 to your computer and use it in GitHub Desktop.
[Collections]
each - error or no return;
map - return transformed values in array;
filter - return those that has passed;
reject - removes the values that have passed;
reduce - returns one value based on array values;
detect - returns first passed;
sortBy - returns sorted by a numeric value;
some - return true if one satisfies iterator;
every - return true if all satisfies iterator;
concat - returns combine results of iterator;
[Control Flow]
series -
parallel -
whilst - while true
until - until true
forever - indefinite
waterfall - one by one
compose - create f(g(h()))
seq - run f(g(h()))
applyEach - same arguments
queue -
cargo - special queue
auto -
retry -
iterator -
apply -
nextTick -
times -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment