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

Added object params for ".by" method. #94

Closed
wants to merge 1 commit into from

Conversation

octaflop
Copy link

@octaflop octaflop commented Oct 2, 2015

Previously, the ".by" method could only add in increments of 1. By utilizing objects and updating the case selection, we're now able to change the increments to something customized.

I'm not a js expert by any means, but I think that this approach should allow for customized intervals, eg:
range.by({minutes: 30}, function(r){ something.push(r)}), thanks to the object literals allowed by MomentJS’s "add".

@octaflop
Copy link
Author

octaflop commented Oct 2, 2015

Again, I'm not that great of a JS dev, but I think this might be a good solution for #93

Previously, the ".by" method could only add in increments of 1. By utilizing objects and updating the case selection, we're now able to change the increments to something customized.

fixed bug in conditional and wrote a test

not for dist, fails one test

documented

rebuilt
@octaflop
Copy link
Author

octaflop commented Oct 2, 2015

  1. Updated README
  2. Squashed commits
  3. Thanked author 😄

@gf3
Copy link
Contributor

gf3 commented Dec 13, 2016

this can be accomplished in v3 with the step option—great suggestion

@gf3 gf3 closed this Dec 13, 2016
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.

None yet

2 participants