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

Add new methods of underscore.js v1.6 #12

Closed
serkanyersen opened this issue Feb 17, 2014 · 1 comment
Closed

Add new methods of underscore.js v1.6 #12

serkanyersen opened this issue Feb 17, 2014 · 1 comment
Assignees
Labels
Milestone

Comments

@serkanyersen
Copy link
Owner

Implement new methods with their respective tests

  • Added _.partition, a way to split a collection into two lists of results — those that pass and those that fail a particular predicate.
  • Added _.property, for easy creation of iterators that pull specific properties from objects. Useful in conjunction with other Underscore collection functions.
  • Added _.matches, a function that will give you a predicate that can be used to tell if a given object matches a list of specified key/value properties.
  • Added _.constant, as a higher-order _.identity.
  • Added _.now, an optimized way to get a timestamp — used internally to speed up debounce and throttle.
  • The _.partial function may now be used to partially apply any of its arguments, by passing _ wherever you'd like a placeholder variable, to be filled-in later.
  • The _.each function now returns the original iterated list (just like it used to), for better chaining.

Make sure API matches the javascript API.

@serkanyersen serkanyersen added this to the v0.1.6 milestone Feb 17, 2014
@serkanyersen serkanyersen self-assigned this Feb 17, 2014
serkanyersen added a commit that referenced this issue Feb 20, 2014
serkanyersen added a commit that referenced this issue Feb 20, 2014
@serkanyersen
Copy link
Owner Author

Functionality boosted to 1.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant