Make any value an array
npm install as-typed-arrayMake any value an array.
_If I should maintain this repo, please ⭐️_
_DM me on Twitter if you have questions or suggestions._
---
``sh`
yarn add as-typed-array
`sh`
npm install as-typed-array
`sh`
pnpm add as-typed-array
`ts
import asArray from "as-typed-array";
asArray(["ok"]); // ["ok"]
asArray("ok"); // ["ok"]
asArray({ ok: true }); // [{ ok: true }]
asArray(undefined); // [];
``
- autorepo: Autorepo abstracts away your dev dependencies, providing a single command to run all of your scripts.