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

allow for custom default value in series prev/next functions #230

Merged
merged 3 commits into from
Jan 8, 2023

Conversation

sodiray
Copy link
Owner

@sodiray sodiray commented Jan 8, 2023

Description

In the series module, when using prev and next functions you can now pass a custom default value if the series is exhausted. Previously it automatically defaulted to the first or last item in the series.

series.first('first') => 'last'
series.first('first', 'nth') => 'nth'

Checklist

  • Changes are covered by tests if behavior has been changed or added
  • Tests have 100% coverage
  • If code changes were made, the version in package.json has been bumped (matching semver)
  • If code changes were made, the yarn build command has been run and to update the cdn directory
  • If code changes were made, the documentation (in the /docs directory) has been updated

Resolves

n/a

@sodiray sodiray added the release label Jan 8, 2023
@vercel
Copy link

vercel bot commented Jan 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
radash-docs ✅ Ready (Inspect) Visit Preview Jan 8, 2023 at 6:49AM (UTC)

@sodiray sodiray merged commit eb864e5 into master Jan 8, 2023
@sodiray sodiray deleted the ray/series-custom-default branch June 27, 2023 13:37
aleclarson referenced this pull request in radashi-org/radashi Jun 24, 2024
* allow for default value in series prev/next

* bump version -> 10.6.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant