radash icon indicating copy to clipboard operation
radash copied to clipboard

feat: add cast function for array

Open chiui-li opened this issue 1 year ago • 3 comments

Description

add function: cast for array, cast value into an array if it is not an array

Checklist

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

Resolves

If the PR resolves an open issue tag it here. For example, Resolves #34

chiui-li avatar Mar 25 '24 15:03 chiui-li

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

Name Status Preview Comments Updated (UTC)
radash-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 25, 2024 3:28pm

vercel[bot] avatar Mar 25 '24 15:03 vercel[bot]

I believe the more popular term is arrify or arraify

aleclarson avatar Jun 24 '24 07:06 aleclarson

Hi @chiui-li, we added castArray over at the Radashi fork: https://github.com/radashi-org/radashi/pull/97

You can use it today by installing radashi@beta. An official release is pending.

aleclarson avatar Jul 15 '24 23:07 aleclarson