radash
radash copied to clipboard
feat: add cast function for array
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.jsonhas been bumped (matching semver) - [x] If code changes were made, the
yarn buildcommand has been run and to update thecdndirectory - [x] If code changes were made, the documentation (in the
/docsdirectory) has been updated
Resolves
If the PR resolves an open issue tag it here. For example, Resolves #34
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 |
I believe the more popular term is arrify or arraify
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.